mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
13 lines
331 B
JavaScript
13 lines
331 B
JavaScript
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;
|