Accessibility
- Each chart is an image with a text: its
titleanddescription, or a summary of the data. Write your owndescriptionfor what the chart shows. - Points, items and tree nodes that can be clicked take the focus and answer to Enter and Space.
- Charts do not move for people who ask for reduced motion.
- Text in shapes is black or white, whichever reads better.
- Colour is not always enough: add labels, or a table beside the chart.
Safety
Names and categories are written as text, never parsed as HTML. decorate and colours come from your code: do not build them from what visitors type.