mirror of
https://github.com/umami-software/umami.git
synced 2026-02-18 03:25:40 +01:00
Merge branch 'feat/um-285-report-schema' into dev
This commit is contained in:
commit
40f53e8856
29 changed files with 1007 additions and 14 deletions
12
components/pages/reports/funnel/FunnelTable.js
Normal file
12
components/pages/reports/funnel/FunnelTable.js
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import DataTable from 'components/metrics/DataTable';
|
||||
|
||||
export function FunnelTable({ ...props }) {
|
||||
const { data } = props;
|
||||
|
||||
const tableData =
|
||||
data?.map(a => ({ x: a.x, y: a.y, z: Math.floor(a.y / data[0].y) * 100 })) || [];
|
||||
|
||||
return <DataTable data={tableData} title="Url" type="device" />;
|
||||
}
|
||||
|
||||
export default FunnelTable;
|
||||
Loading…
Add table
Add a link
Reference in a new issue