- Difficulty: Medium
- Labels:
feature, dashboard, charts
Description
The Expert Earnings page (src/app/dashboard/earnings/page.tsx) needs rich visual analytics. We want to implement interactive bar and line charts showing earnings over time (daily, weekly, monthly) using recharts.
Technical Scope & Steps
- Open
src/components/dashboard/EarningsChart.tsx (or equivalent).
- Integrate
recharts to render a responsive Area/Line chart for earning trends and a Bar chart representing session counts per category.
- Add a time filter toggle (7 days, 30 days, Year-to-Date).
- Add tooltips showing exact payout numbers when hovering over chart nodes.
Acceptance Criteria
- Charts are fully responsive and adapt to mobile viewports.
- Tooltips display correct currency formatting.
- Toggle controls successfully update chart datasets.
feature,dashboard,chartsDescription
The Expert Earnings page (
src/app/dashboard/earnings/page.tsx) needs rich visual analytics. We want to implement interactive bar and line charts showing earnings over time (daily, weekly, monthly) usingrecharts.Technical Scope & Steps
src/components/dashboard/EarningsChart.tsx(or equivalent).rechartsto render a responsive Area/Line chart for earning trends and a Bar chart representing session counts per category.Acceptance Criteria