Keyboard access
Charts you can use with the keyboard and a screen reader: every chart with data is a tab stop, and the arrow keys move between points. Keyboard navigation runs in the browser; only finished zooms and Enter call .NET.
Moving between points
With the chart focused, ← and → move between points, ↑ and ↓ between series
(on pies, every arrow moves between slices), Home, End, Page Up and Page Down jump.
The crosshair and tooltip follow, linked charts follow too, and screen readers hear each point (for example
"Mon 01:00: Web 177 sessions, App 114 sessions. 5 of 192"). Enter raises OnPointClick and
Esc leaves.
Click the chart below or Tab to it, then use the arrow keys. KeyboardNavigation="false" turns it off.
Selected with Enter: nothing yet
Code
<RioChart TItem="Reading" OnPointClick="e => selected = e">
<LineSeries Items="web" Name="Web" XValue="r => r.Time" YValue="r => r.Value" Format="#,0 'sessions'" />
<LineSeries Items="app" Name="App" XValue="r => r.Time" YValue="r => r.Value" Format="#,0 'sessions'" />
</RioChart>Zooming with the keyboard
On Zoomable charts, + and − zoom around the focused point, Shift+←/→
pans and 0 shows all data.
Code
<RioChart TItem="Reading" Zoomable="true">
<LineSeries Items="web" Name="Web" XValue="r => r.Time" YValue="r => r.Value" Format="#,0 'sessions'" />
<LineSeries Items="app" Name="App" XValue="r => r.Time" YValue="r => r.Value" Format="#,0 'sessions'" />
</RioChart>High Contrast and reduced motion
In Windows High Contrast (forced colors) the page takes the system colors, but the data keeps its own: series, the
canvas layer and the tooltip's color dots stay in their colors, so the legend still matches. With
prefers-reduced-motion, or Animate="false", nothing fades or moves.