Activity Chart Widget
Component Detail
User Interface
medium complexity
mobile
0
Dependencies
0
Dependents
1
Entities
0
Integrations
Description
A reusable Flutter chart widget built on fl_chart that visualises peer mentor activity trends over time. Supports both bar and line chart modes for weekly, monthly, and yearly views. Meets WCAG 2.2 AA colour contrast requirements.
activity-chart-widget
Responsibilities
- Render bar or line chart from aggregated activity data
- Support switching between weekly, monthly, and yearly chart views
- Ensure accessible colour contrast (WCAG 2.2 AA) on all chart elements
- Animate chart transitions when data or range changes
Interfaces
ActivityChartWidget({data, chartType, dateRange})
onChartTypeToggled(type)
onDataPointTapped(entry)
buildBarChart()
buildLineChart()
getAccessibleColor(index)