Merge branch 'feat/um-285-report-schema' into dev
This commit is contained in:
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;
|
||||
Reference in New Issue
Block a user