[Chartjs]-Chart.js – Navigate through elements/tooltips using arrow keys

1👍

I wrote a library, Chart2Music, that helps provide keyboard navigation and sonification for keyboard-only and screen reader users.

Since I love using chart.js, I also built a chart.js plugin for it. It’s called chartjs-plugin-chart2music, and is still in beta.

You can get the accessibility support simply by registering the plugin.

import Chart from "chart.js/auto";
import chartjs2music from "chartjs-plugin-chart2music";

// Register the plugin globally
Chart.register(chartjs2music);

If you want to play with it, here’s a codepen example with keyboard navigation and sonification:
https://codepen.io/chart2music/full/YzaVxPK

Leave a comment