Keyboard Accessibility

This tutorial introduces how to control charts with the keyboard

Users can navigate through the chart using the computer arrow keys. If a screen reader is enabled, this will describe the contents of the chart, such as the x-axis, y-axis, and data points.

General Chart Keys

General Chart Hotkeys
NameKeysDescription
Move Between AreasPage UpPage up: moves from legend to y-axis to x-axis. If missing a feature, just skips it and moves onto the next. Does not loop, so returns to overview after x-axis.
Move Between AreasPage DownPage down: moves from x-axis to y-axis to legend. If missing a feature, just skips it and moves onto the next. Does not loop, so won't move past legend.
Chart Data AccessTabMove from anywhere in the graph to the main chart area, allowing access to specific data.
Return to OverviewShift + TabReturn to overview from anywhere in the chart.
Zoom inEnterMove to the first data point or subgroup in the chart, or first data point in subgroup.
Zoom OutShift + EnterWithout subgroups or from subgroup overview: move to general chart data area. Within subgroups: move to subgroup overview.
Multi-Chart MovementUp Arrow KeyDown the list of charts.
Multi-Chart MovementDown Arrow KeyUp the list of charts.
Multi-Chart MovementLeft Arrow KeyUp the list of charts.
Multi-Chart MovementRight Arrow KeyDown the list of charts.

Box and Violin Plot Keys

Box and Violin Plots Keys
NameKeysDescription
Move Through SpecificsUp Arrow KeyMinimum to maximum movement. Full list of data: Minimum, interquartile range, first quartile, median, third quartile, maximum, outliers.
Move Through SpecificsDown Arrow KeyMaximum to minimum movement. Full list of data: Minimum, interquartile range, first quartile, median, third quartile, maximum, outliers.
Move Through SpecificsLeft Arrow KeyMaximum to minimum movement. Full list of data: Minimum, interquartile range, first quartile, median, third quartile, maximum, outliers.
Move Through SpecificsRight Arrow KeyMinimum to maximum movement. Full list of data: Minimum, interquartile range, first quartile, median, third quartile, maximum, outliers.

Histogram and Pie Chart Keys

Hisrogram and Pie Chart Keys
NameKeysDescription
X-Axis MovementUp Arrow KeyMove towards origin.
X-Axis MovementDown Arrow KeyMove away from origin.
X-Axis MovementLeft Arrow KeyMove away from origin.
X-Axis MovementRight Arrow KeyMove towards origin.
Value MovementPage UpTowards largest value point movement.
Value MovementPage DownTowards smallest valued point movement.

Bar Chart, Line Chart, and Scatter Plot Keys

Bar Chart, Line Chart, and Scatter Plot Keys
NameKeysDescription
X-Axis MovementUp Arrow KeyMove towards origin.
X-Axis MovementDown Arrow KeyMove away from origin.
X-Axis MovementLeft Arrow KeyMove away from origin.
X-Axis MovementRight Arrow KeyMove towards origin.
Value MovementPage UpTowards smallest valued point movement.
Value MovementPage DownTowards smallest valued point movement.
Subgroup to Data PointsEnterMove to specific data within a subgroup from the subgroup list.

Accessible Data by Chart Type

Accessible Data by Chart Type
Chart TypeValue Data Provided
Bar ChartBar values, subgroup overview.
HistogramBin values.
Pie ChartSlice values.
Scatter PlotData point values, subgroup overview.
Line ChartData point values, line overview.
Box PlotMinimum, interquartile range, first quartile, median, third quartile, maximum, outliers.
Violin PlotMinimum, interquartile range, first quartile, median, third quartile, maximum.

Try it Yourself!

Press the blue run button to execute the code in the code editor. Press the red stop button to end the program. Your program will work when the console outputs "Build Successful!"

This runnable example demonstrates how to use the accessibility features with charts. Note that we must have screen reader enabled to go through all the individial parts of the chart.

For this example, the data may not make sense to the chart type. However, we will be discussing what makes a good chart in the next section.

Next Tutorial

In the next tutorial, we will discuss Good Charts, which describes how to make good charts as a data scientist.