diff --git a/src/app/dashboard/ai-coach/college-predictor/page.tsx b/src/app/dashboard/ai-coach/college-predictor/page.tsx
index ab6a25c..81e0514 100644
--- a/src/app/dashboard/ai-coach/college-predictor/page.tsx
+++ b/src/app/dashboard/ai-coach/college-predictor/page.tsx
@@ -8,10 +8,10 @@ import { useActiveUser, isDemoUser } from "@/hooks/useActiveUser"
const DEMO_TREND_DATA = [
{ name: 'Week 1', rank: 4500, label: 'NIT Trichy CSE' },
- { name: 'Week 2', rank: 4100 },
- { name: 'Week 3', rank: 3800 },
- { name: 'Week 4', rank: 3300 },
- { name: 'Week 5', rank: 2900 },
+ { name: 'Week 2', rank: 4100, label: 'NIT Surathkal CSE' },
+ { name: 'Week 3', rank: 3800, label: 'IIT Mandi EEE' },
+ { name: 'Week 4', rank: 3300, label: 'IIT Ropar CSE' },
+ { name: 'Week 5', rank: 2900, label: 'IIT Guwahati ECE' },
{ name: 'Week 6', rank: 2750, label: 'IIT Roorkee' },
]
@@ -26,13 +26,31 @@ const ZERO_TREND_DATA = [
// Custom Label to permanently show text on the graph (not on hover)
const CustomLabel = (props: any) => {
- const { x, y, stroke, value, index, data } = props;
+ const { x, y, index, data } = props;
const point = data[index];
if (!point || !point.label) return null;
+
+ let anchor = "middle";
+ let xPos = x;
+ let yPos = y - 20;
+
+ if (index === 0) {
+ anchor = "start";
+ xPos = x + 5;
+ } else if (index === data.length - 1) {
+ anchor = "end";
+ xPos = x - 5;
+ }
+
return (
-
- {point.label}
-
+
+
+ {point.label}
+
+
+ Rank: {point.rank}
+
+
);
};
@@ -74,16 +92,11 @@ export default function CollegePredictorPage() {
-
+
{/* User said static line, not dotted. So removed strokeDasharray from grid? Let's make it solid if they mean grid, or just the line. Line is monotone. */}
- [`Rank: ${value}`, 'Prediction']}
- />