Design principles
Every chart in the library follows the same defaults. They're built into the components, so you get them without configuring anything, and an AI tool using the components can't skip them. Most of them exist because a chart is often read quickly by someone who will act on it.
One consistent style
Every chart shares the same spacing, typography, colors, tooltip, legend and toolbar. A finance page and a product page built from these charts look like the same product, and a new chart on next month's dashboard matches the old ones. Colors come from CSS variables, so the whole set follows your theme in light and dark mode (Theming).
Bars start at zero
A bar's length is its value. If the axis starts at 90, a bar for 95 looks twice as long as one for 92.5. Bar charts always include zero. Lines and dots, which are read by position, may zoom in when that's clearer. Bars have a rounded data end and a square end on the baseline, so the baseline stays a clean line.
Missing means missing
A missing value is drawn as a gap with a note, never as zero and never interpolated. A late month that drops to zero looks like a crash that never happened. Invalid data (text where a number should be) shows a message on the chart that names the problem instead of a wrong picture. Details: Data and edge cases.
Forecasts and partial periods look different
Forecast values are dashed and labelled; an unfinished current period is shaded and marked "partial". Readers should never mistake a projection or a half month for a result.
No dual axes
Two measures with different units on two y-axes let the chart suggest a relationship that is really a choice of scale. Two units get two aligned panels (combo chart), growth comparisons get a common index (index chart), and many series get small multiples.
Colors mean something
Series colors follow a fixed order, so a series keeps its color when filters change. For variances, color follows business meaning, not the sign: lower cost is good, so set favorable="down" and a decrease turns green. Direction is also shown by shape or position, never by color alone.
Titles state the takeaway
The title says what the chart shows ("Cloud costs are 8% over budget"), and the subtitle says what's measured: metric, unit, period. The title is also the chart's accessible name.
Accessible by default
Every chart has keyboard navigation (arrow keys move between points), a screen-reader summary, a table view and CSV export. See Accessibility.
What we leave out on purpose
No 3D, no dual axes, no pie charts with a dozen slices (small slices fold into "Other", and a 9th series is grey with a note), no animations that delay reading. When a chart is a poor fit for the data, its page says so under "Avoid when" and suggests the alternative.
These defaults come from established data-visualization practice. Other libraries make different trade-offs, often for good reasons (flexibility, smaller scope). Ours are chosen for dashboards that people make decisions from.