Generated API reference for @rekhly/a11y →
@rekhly/a11yAccessibility helpers for Rekhly Visuals: keyboard navigation, focus management, screen-reader labeling, and live-region announcements.
import { bindChartKeyboardNav, makeFocusable, createLiveRegion, prefersReducedMotion } from "@rekhly/a11y";
bindChartKeyboardNav — the standard chart keyboard scheme (+/- zoom, arrow-key pan, 0/Home reset — see keyboardHelp). Used by @rekhly/charts-2d's chartXY; any chart exposing zoom/pan/ resetView can opt in.
makeFocusable — sets tabIndex, role="img", and a descriptive aria-label built from describeChart. Every chart type gets this by default via @rekhly/engine's createHostSurface, not just XY.
createLiveRegion / LiveRegion.announce — a visually-hidden, polite aria-live region for announcing zoom/pan/data changes without stealing focus.
seriesSummary, dataTable — screen-reader summary and tabularfallback for series data.
prefersReducedMotion — a real matchMedia check (false on the server and in environments without matchMedia, never assumed).
dispose() on a LiveRegion is a safe no-op the second time.Got any questions? I'm happy to help with products, licensing, and examples.