feat(dashboard): add recharts data visualizations

- Install recharts
- Add WatchActivityChart (AreaChart, movies + episodes/month, year filter)
- Add WatchTimeChart (stacked BarChart, hours/month, synced year filter)
- Add RatingsChart (BarChart, user ratings distribution 1–10, color ramp)
- Add TopGenresChart (horizontal BarChart, top 10 genres, type filter)
- Add CouchDayChart (BarChart, watch count by weekday, peak day highlight)
- Add GET /statistics/watch-weekday backend endpoint (DAYOFWEEK aggregation)
- Extend statisticsApi with getYearlyWatchCount, getYearlyWatchTime, getWatchdayDistribution
- Add useYearlyWatchCount, useYearlyWatchTime, useWatchdayDistribution hooks
- Wire all charts into DashboardPage with responsive two-column grid layout
This commit is contained in:
Mohammed Abad committed 2026-04-01 16:04:43 +01:00
1 parent 3648c41cfd
commit ae67663623
12 files changed
+1216 -2

No files matched your search

+3
View File
@@ -13,4 +13,7 @@ statisticsRouter.get('/watch-time/year/:year', statisticsController.getYearlyWat
// * GET - Yearly Watch Count Grouped By Month
statisticsRouter.get('/watch-count/year/:year', statisticsController.getYearlyWatchCountGroupByMonth);
// * GET - Watch Day Distribution (DAYOFWEEK)
statisticsRouter.get('/watch-weekday', statisticsController.getWatchdayDistribution);
module.exports = statisticsRouter;