Description
The organizer dashboard has no visual summary of ticket sales or revenue. Add a simple bar chart showing tickets sold per event using the existing Recharts library.
Tasks
- Add a
SalesChart component at apps/web/components/dashboard/sales-chart.tsx.
- Fetch data from
GET /api/v1/events/:id/revenue for each hosted event.
- Render a
BarChart from recharts with event titles on the X-axis and tickets sold on the Y-axis.
- Display a loading skeleton while data is fetching.
Acceptance Criteria
- Chart renders correctly with real data on the dashboard.
- Skeleton is shown during the loading state.
- Chart is responsive and does not overflow on mobile.
Description
The organizer dashboard has no visual summary of ticket sales or revenue. Add a simple bar chart showing tickets sold per event using the existing Recharts library.
Tasks
SalesChartcomponent atapps/web/components/dashboard/sales-chart.tsx.GET /api/v1/events/:id/revenuefor each hosted event.BarChartfromrechartswith event titles on the X-axis and tickets sold on the Y-axis.Acceptance Criteria