accessible

command
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Command accessible renders a chart that can be read without being seen.

It writes three files that are one chart:

  • accessible.svg — the picture, carrying an accessible name and a description a screen reader announces, and drawn with dashes and marker shapes so that colour is not the only thing telling the layers apart;
  • accessible.html — a page holding the picture and the same data as a table, which is the fallback for a reader who cannot use the picture and the honest answer to what is in it;
  • accessible.txt — the description on its own, for a caption or an alt attribute somewhere else.

The labels are set as notation: the y axis is a fraction with a radical in it, which is what a standard error actually looks like.

go run ./examples/accessible

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL