User Interface medium complexity mobile
0
Dependencies
1
Dependents
0
Entities
0
Integrations

Description

Reusable Flutter widget that renders activity data as visual charts (bar, line, or pie) using the fl_chart library. Pairs with the accessible stats table widget to meet WCAG 2.2 AA requirements. Supports animated transitions when filters change and provides semantic labels on all chart elements for screen reader compatibility.

Feature: Personal Activity Statistics

stats-chart-widget

Responsibilities

  • Render bar, line, and pie charts from aggregated stats data
  • Apply WCAG-compliant colors with 3:1 minimum contrast on chart elements
  • Expose semantic descriptions on all chart segments and axes
  • Animate chart updates on filter change

Interfaces

StatsChartWidget({required List<StatDataPoint> data, required ChartType type})
updateData(List<StatDataPoint> newData)
setChartType(ChartType type)
getSemanticDescription() → String

Relationships

Dependents (1)

Components that depend on this component