imaNNeo / fl_chart

FL Chart is a highly customizable Flutter chart library that supports Line Chart, Bar Chart, Pie Chart, Scatter Chart, and Radar Chart.
https://flchart.dev
MIT License
6.86k stars 1.78k forks source link

Add a semantics support for to the line chart tooltip in LineTooltipItem #1746

Open AlexeyNarush opened 2 months ago

AlexeyNarush commented 2 months ago

The current implementation of the line chart includes semantics for the entire chart but lacks semantics for the tooltip popup that appears when hovering over data points. This limitation prevents screen readers from picking up the information displayed in the tooltip, affecting the chart's accessibility for visually impaired users.

Current Behavior: The screen reader reads the entire chart but does not pick up any information in the tooltip popup.

Expected Behavior: The screen reader should read the tooltip information when a user hovers over or selects a data point in the line chart.