diff --git a/src/app/(main)/websites/[websiteId]/session-data/SessionPropertyChart.tsx b/src/app/(main)/websites/[websiteId]/session-data/SessionPropertyChart.tsx index b175908df..5ae934723 100644 --- a/src/app/(main)/websites/[websiteId]/session-data/SessionPropertyChart.tsx +++ b/src/app/(main)/websites/[websiteId]/session-data/SessionPropertyChart.tsx @@ -74,7 +74,7 @@ export function SessionPropertyChart({ )} - + {activeTable.length === 0 ? ( @@ -97,7 +97,12 @@ export function SessionPropertyChart({ - + {row => ( @@ -118,7 +123,12 @@ export function SessionPropertyChart({ {row => formatLongNumber(row.events)} - + {row => formatShortTime(Math.abs(~~Number(row.totaltime)), ['h', 'm', 's'], ' ') } diff --git a/src/components/property-data/PropertyNumericChart.tsx b/src/components/property-data/PropertyNumericChart.tsx index ed98e23df..aad0149a7 100644 --- a/src/components/property-data/PropertyNumericChart.tsx +++ b/src/components/property-data/PropertyNumericChart.tsx @@ -48,15 +48,6 @@ export function PropertyNumericChart({ const avgRows = useMemo(() => (avgQuery.data as { t: string; y: number }[] | undefined) ?? [], [avgQuery.data]); const stats = statsQuery.data; - const formatMetricValue = useCallback( - (n: number) => - Number(n).toLocaleString(locale, { - maximumFractionDigits: 2, - minimumFractionDigits: Number.isInteger(Number(n)) ? 0 : 2, - }), - [locale], - ); - const chartData: any = useMemo(() => { if (!sumQuery.data && !avgQuery.data) return; @@ -109,10 +100,10 @@ export function PropertyNumericChart({ > - - - - + + + +