Skip to main content
SiteScan.top

Britecharts 3.0 Adds Accessible D3 Charts

Britecharts 3.0 adds accessible D3 charts with keyboard support, dark mode, and a new treemap — an overview of the update for web developers. Пошаговая инст

Blog · Published: 28 November 2026 · 4 min read

A major data visualization library update has arrived: the project Britecharts 3.0 adds accessible D3 charts for JavaScript and React. The release changes the approach to building charts — now D3 charts support keyboard navigation, dark mode, and a new treemap visualization type out of the box. For teams working on site audits and accessibility checks, this update is instructive: it demonstrates how a chart library can meet WCAG requirements without extra workarounds or third-party plugins.

Accessible D3 charts from Britecharts 3.0 on a laptop screen

What Changed in the Visualization Library

The new version expands the set of ready-made charts: bar, line, donut, scatter plot, heatmap, stacked area, and a new treemap. Each such D3 chart now gets a unified API, a shared tooltip that never gets cut off at the canvas edge, and animation with configurable duration via the animationDuration parameter.

Charts are now responsive by default, and loading states are available across all visualization types without extra setup. For consistent category styling, a colorMap was added — an end-to-end color-to-value mapping regardless of the chart type.

Accessibility as Part of Chart Architecture

The main difference in this release is that accessibility is built into the foundation rather than layered on top of a finished component. Every D3 chart gets an accessible name and a visually hidden table that a screen reader announces row by row — by date or category.

Bar, donut, line, heatmap, scatter plot, stacked area, stacked bar, and treemap charts support keyboard navigation: a single Tab stop for the entire chart, arrow keys to move between data points, and Home and End to jump to the edges of the dataset.

Developers also accounted for sensitivity settings: when prefers-reduced-motion is enabled, animation is automatically disabled, and the Okabe–Ito palette makes color coding distinguishable for users with color vision deficiency.

Why This Matters for Website Checking and Auditing

Services that analyze accessibility and markup quality regularly encounter dashboards and charts: analytics, reports, infographics on client pages. If such visualizations can't be read by screen-reading software and can't be operated with a keyboard, a site audit flags a WCAG violation regardless of how carefully the rest of the interface is designed.

The approach taken by Britecharts 3.0 is a convenient benchmark when checking your own D3 charts on a page: the presence of an alternative data table, focusability of the element, and preserved contrast in both dark and light themes. These same points are worth including in a manual accessibility checklist before running an automated site scan.

Three Packages Instead of One

All packages are built on D3 v7, ship TypeScript types, and support ES modules, CommonJS, UMD, and CDN delivery.

Migration and Support

Version 2 stops at release 2.18.2 and will not receive further patches, so migrating to the new D3 chart types should be planned using a separate migration guide with before-and-after examples. A JSON Schema configuration has been added for each chart, which simplifies automatic validation of settings before rendering and exporting diagrams to SVG or PNG without extra effort.

Check how much of this is on your own site

A free scan surfaces broken links, JS errors and performance problems in about a minute.