From bf37add36686910aaf69f9c122af13fdf3dd72c8 Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Wed, 11 Mar 2026 22:42:32 +0100 Subject: [PATCH] revert: restore radar chart for scroll depth (4 axes, no 0% anchor) --- components/dashboard/ScrollDepth.tsx | 72 +++++++++++++--------------- 1 file changed, 33 insertions(+), 39 deletions(-) diff --git a/components/dashboard/ScrollDepth.tsx b/components/dashboard/ScrollDepth.tsx index 531bc3d..9409420 100644 --- a/components/dashboard/ScrollDepth.tsx +++ b/components/dashboard/ScrollDepth.tsx @@ -1,6 +1,6 @@ 'use client' -import { Bar, BarChart, CartesianGrid, LabelList, XAxis, ResponsiveContainer, Tooltip } from 'recharts' +import { PolarAngleAxis, PolarGrid, Radar, RadarChart, Tooltip } from 'recharts' import { BarChartIcon } from '@ciphera-net/ui' import type { GoalCountStat } from '@/lib/api/stats' @@ -29,50 +29,44 @@ export default function ScrollDepth({ goalCounts, totalPageviews }: ScrollDepthP return (
-
+

Scroll Depth

-

- % of visitors who scrolled this far -

{hasData ? ( -
- - - - - [`${value}%`, 'Reached']} - /> - - `${v}%`} - /> - - - +
+ + + + [`${value}%`, 'Reached']} + /> + +
) : (