Create an interactive analytics dashboard for Education Platform for Tryout aimed at Users SMA/Middle High School. Include KPI summary cards with trend indicators, a mix of line, bar, and donut charts with hover tooltips and smooth transitions, a sortable and filterable data table, and date-range and segment filters that update every view live. Use a clean, modern visual style with clear layout hierarchy and a dark mode toggle, generate realistic sample data so every chart feels alive, and make it fully responsive.
Assistant
I'll build this analytics dashboard. Let me start by checking the project structure.
Installing recharts and setting up dark mode.
Now the data layer with realistic seeded sample data.
Now the charts module.
Now the sortable/filterable data table.
Now the main App.
Build succeeded. Here's what I created:
TryoutID Analytics — a live dashboard for an SMA/high-school tryout platform.
Data layer (src/data.ts): a seeded generator producing 180 days × grade × track × region × subject records (~50k rows) with realistic weekend spikes, monthly national-tryout events, exam-season ramp, subject difficulty bias, and regional weighting. Includes aggregation, grouping, previous-period shifting, and score-bucketing helpers.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
KPI cards: 6 metrics (active students/day, attempts, avg score, completion rate, signups, premium revenue), each with a period-over-period trend badge and an inline gradient sparkline.
Charts (recharts, custom themed tooltips + 700ms animated transitions): composed area+line trend chart with dual axes, horizontal grouped bar chart for subject score vs pass rate, two donuts (score distribution + track mix) with center totals, regional bar chart, and a signup area chart.
Data table: sortable on every column, text search, score-band filter, inline volume bars and color-coded score badges.
Filters: date presets (7/14/30/90/180D), custom date-range pickers, plus multi-select grade / track / region chips — all views recompute live.
Dark mode toggle via Tailwind v4 @custom-variant, sticky glass header, and a fully responsive grid layout.