website/tutorials/a11y/intro.mdx
This tutorial introduces how to make charts with Lightweight Charts™ more accessible. Lightweight Charts™ does not have built-in accessibility attributes and behaviors. This gives you the flexibility to customize and implement them on your own, seamlessly integrating the charts into your site's existing accessibility policy.
:::info
The tutorial serves as a starting point and provides ideas for creating a fully accessible chart based on your users' needs. It is not intended to be a comprehensive tutorial.
:::
:::tip Ready-made plugin
If you would rather not wire these techniques up by hand, the Accessibility plugin in the plugin examples packages the keyboard navigation, ARIA markup and screen-reader announcements covered in this tutorial into a single chart-level helper:
addAccessibilityPlugin(chart, { chartTitle: 'My chart' });
The tutorial is still the best way to understand what such a layer does under the hood, and a guide for building your own integration.
:::
Graphical data representation, although visually appealing and informative, can sometimes pose challenges to individuals with varying abilities and needs. In line with the principles of inclusivity and universal design, we aim to demonstrate how to make your charts more accessible to a broader audience.
Before we get started, let us have a look at what we will be building in this tutorial.
{/*
note: iframe won't display correctly when using docusaurus serve,
however it works correctly when hosted. https://github.com/facebook/docusaurus/issues/7991
*/}
The following topics will be covered within the tutorial:
To fully benefit from this guide, we assume that you are already familiar with:
:::tip
The tutorial will assume that you've already read the Getting Started section. Additionally it is recommended that you read the Customization tutorial
:::