From 0046129f6ab824cffe9971905f1119fa59bead87 Mon Sep 17 00:00:00 2001 From: ectasy663 Date: Fri, 25 Sep 2026 16:39:44 +0530 Subject: [PATCH] Simplify College Predictor Tooltip to remove ucl and lcl noise --- .../ai-coach/college-predictor/page.tsx | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/app/dashboard/ai-coach/college-predictor/page.tsx b/src/app/dashboard/ai-coach/college-predictor/page.tsx index ccfa7fe..906a0fe 100644 --- a/src/app/dashboard/ai-coach/college-predictor/page.tsx +++ b/src/app/dashboard/ai-coach/college-predictor/page.tsx @@ -48,6 +48,19 @@ const CustomLabel = (props: any) => { ); +// Custom Tooltip to clean up hover information +const CustomTooltip = ({ active, payload }: any) => { + if (active && payload && payload.length) { + const data = payload[0].payload; + return ( +
+

{data.label}

+

Test: {data.name}

+

Score: {data.value} / 300

+
+ ); + } + return null; }; // Custom dot @@ -118,10 +131,7 @@ export default function CollegePredictorPage() { tickLine={false} label={{ value: 'Mock Exam Score', angle: -90, position: 'insideLeft', fill: 'var(--muted-foreground)', fontSize: 12, fontWeight: 'bold' }} /> - + } /> {/* Target Spec Line Band */}