references/components/chart.md
about 310 tokens- greenline
# Chart
Read this page when the change builds or changes a chart; read the data visualisation page of the craft with it.
- **The form by the question.** One line over time, square-cornered columns per period, sorted horizontal bars for a ranking, a thin ring or a full bar of five parts at most for a share, a bar labelled at both ends for a target.
- **Proportions.** Plots run about 112 to 264 pixels tall, one series per chart and three at most, three to five gridlines, four to seven round ticks on the y axis and four to eight unrotated labels on the x axis; bars and counts start at zero.
- **Colour.** One hue per chart, a subject the same hue everywhere; more than four hues warns. A single series has no legend.
- **Honesty.** A short or empty history is drawn as it is, never padded; a spike gets a marker and a cause.
- **Text alternative.** A chart has a short text alternative and the full data in a nearby table; a meaningful drawing is an image with a name, and a decorative one is hidden.
- **Hover.** A column's hover zone is a flush full-height column with the narrower bar drawn inside it.
- **Responsive collapse.** On a phone a chart runs full width at 160 to 200 pixels tall, with three or four x labels and the legend's dots above.