Data viz · SU-187 · SU-188 · SU-189 · SU-190
The chart states its point and works without color
Flip between the version shibroUI flags and the one it ships. The marks and callouts show what changes.
-
Title
"Sales" · no takeaway -
Axis text
10px · about 1.7:1
-
Title
states the takeaway
Sales
Online passed retail in May
Monthly sales, $k
-
Series
two blues · legend only
-
Series
solid vs dashed · end labels -
Alternative
table view + aria-label
What changes
- Bad
- The title is just “Sales”, two near-identical blues are told apart only by a legend, and
10pxaxis text sits at about1.7:1in both themes. - Good
- The title states the takeaway, the series differ by solid vs dashed line with direct end labels, and
12pxaxis text is6.2:1light ·6.7:1dark.
The rules
-
SU-187
Series stay visible and stay in the color budget. Each series' marks reach 3:1 against the plot background (WCAG 1.4.11). Adjacent series differ by more than color: line style, marker shape or a direct label. Series colors come from chart tokens (
--chart-1…n, validated by the dataviz palette script), so they don't count against SU-127's single accent. Keep the same color for the same series across the page. -
SU-188
Chart text is real, readable text. Axis labels, tick values and annotations are text at least 12px and at least 4.5:1, with tabular figures and units in the label. Gridlines stay quiet, and data ink is the highest contrast in the chart.
-
SU-189
Every chart has a text alternative. The chart has
role="img"and anaria-labelthat states the takeaway, *plus* the data as a table or a "View as table" control. Tooltips are reachable by keyboard focus, can be dismissed, and are never the only place a value lives (WCAG 1.4.13). -
SU-190
Charts have states too. Charts are part of the state matrix (SU-155): loading: an axis skeleton; empty: "No orders in this period"; error: with Retry; sparse data: a single point.