Charts
Last updated: 2026-11-27T06:53:41-03:00 (UTC-3)
Charts read the design system for everything around the data (surface, grid, axes, labels and type), and their series colors are design tokens too: each validated palette is declared in design-tokens/tokens.json under color.chart and rendered as --color-chart-<palette>-<key>. Part of the design system.
Why a palette is a set, not a role
Section titled “Why a palette is a set, not a role”A categorical palette is validated as a set, against one surface: every pair of series must stay distinguishable under the common color-vision deficiencies, and every series must reach 3:1 against the chart background. Changing one hex, or the surface behind it, can break a pair that looked fine. So a palette is not a role: its values are fixed literals (never references), named so they live in the single source and a chart reads them with var(). The token check never rewrites them and refuses a literal written in a chart instead. Change a series color only by re-running the validator on the whole set, in every theme it is shown in, and record the result in the palette’s validated field.
Every palette carries a dark and a light value, because the console has both themes: a color that separates well on the dark panel is often too pale on the light one. Each set was run through the dataviz palette validator, which makes five checks, on the panel surface of each theme (the solid panel tint over the page: #060e16 in dark, #f7f9fb in light). The results differ by palette:
| Palette | Result |
|---|---|
| Usage (2 series) | Passes all five checks in both themes. |
| Eval runs (5 series) | Passes all five checks in both themes for adjacent series (worst color-blind ΔE 8.4 in dark, 9.8 in light), not for every pair. Adjacent is how runs are drawn: bars and lines beside a legend, so a run is never identified by color alone. |
| Valuation (4 series) | Passes color-blind separation, normal-vision separation and contrast in both themes. Its unvalued gray is below the chroma floor on purpose: it is the neutral “no value” series, the same in both themes. Every value is inside the validator’s lightness band in both themes: the dark values were retuned in lightness only (T165d), same hues in the same order. |
| Valuation trend (bar and selected bar) | Passes all five checks in light. In dark it passes the lightness band, color-blind separation, normal-vision separation and contrast after the lightness-only retune of T165d; the selected bar keeps the chroma it had (0.091), just under the chroma floor, because only lightness was changed. |
Each series is also a contrast pair (kind: graphic, 3:1 against the console’s panel over the page, in each theme), so a surface change that breaks a series fails the check.
Palettes in use
Section titled “Palettes in use”| Palette | Token | Dark | Light | Where | Validated |
|---|---|---|---|---|---|
| Usage over time (requests and errors, input and output tokens) | --color-chart-usage-1 |
#8780e9 |
#5c51b5 |
web/src/AnalyticsChart.tsx |
the solid panel tint over the page, dark and light (dataviz validator); the design system’s chart-1 and chart-2 |
| Usage over time (requests and errors, input and output tokens) | --color-chart-usage-2 |
#00aa93 |
#018e7b |
web/src/AnalyticsChart.tsx |
the solid panel tint over the page, dark and light (dataviz validator); the design system’s chart-1 and chart-2 |
| Eval run comparison (up to five runs) | --color-chart-eval-runs-1 |
#3987e5 |
#2a78d6 |
web/src/EvalsCompareCharts.tsx, web/src/DashboardChart.tsx (the series of a dashboard widget) |
the solid panel tint over the page, dark and light (dataviz validator); a run keeps its color whatever the baseline |
| Eval run comparison (up to five runs) | --color-chart-eval-runs-2 |
#d95926 |
#d9541f |
web/src/EvalsCompareCharts.tsx, web/src/DashboardChart.tsx (the series of a dashboard widget) |
the solid panel tint over the page, dark and light (dataviz validator); a run keeps its color whatever the baseline |
| Eval run comparison (up to five runs) | --color-chart-eval-runs-3 |
#199e70 |
#12936a |
web/src/EvalsCompareCharts.tsx, web/src/DashboardChart.tsx (the series of a dashboard widget) |
the solid panel tint over the page, dark and light (dataviz validator); a run keeps its color whatever the baseline |
| Eval run comparison (up to five runs) | --color-chart-eval-runs-4 |
#c98500 |
#a86e00 |
web/src/EvalsCompareCharts.tsx, web/src/DashboardChart.tsx (the series of a dashboard widget) |
the solid panel tint over the page, dark and light (dataviz validator); a run keeps its color whatever the baseline |
| Eval run comparison (up to five runs) | --color-chart-eval-runs-5 |
#d55181 |
#cc5587 |
web/src/EvalsCompareCharts.tsx, web/src/DashboardChart.tsx (the series of a dashboard widget) |
the solid panel tint over the page, dark and light (dataviz validator); a run keeps its color whatever the baseline |
| Eval score distribution bars | --color-chart-eval-scores-bar |
#8780e9 |
#5c51b5 |
web/src/evals.css (.evals-bar) |
the solid panel tint over the page, dark and light (dataviz validator) (the usage chart’s first series) |
| Eval score trend bars | --color-chart-eval-trend-bar |
#00aa93 |
#018e7b |
web/src/evals.css (.evals-trend-bars) |
the solid panel tint over the page, dark and light (dataviz validator) (the usage chart’s second series) |
| Judge agreement heatmap (sequential: the base mixed at 12 to 55% over the panel) | --color-chart-agreement-base |
#3987e5 |
#2a78d6 |
web/src/EvalsPage.tsx (AgreementHeatmap) |
the solid panel tint over the page, dark and light (dataviz validator) (the first eval run color) |
| Usage valuation coverage (known, partial, unknown, unvalued) | --color-chart-valuation-known |
#25a98a |
#0f8a63 |
web/src/ValuationInsights.tsx |
the solid panel tint over the page, dark and light (dataviz validator); the dark values were retuned in lightness only (T165d); unvalued is a neutral gray on purpose |
| Usage valuation coverage (known, partial, unknown, unvalued) | --color-chart-valuation-partial |
#766ac9 |
#6250d6 |
web/src/ValuationInsights.tsx |
the solid panel tint over the page, dark and light (dataviz validator); the dark values were retuned in lightness only (T165d); unvalued is a neutral gray on purpose |
| Usage valuation coverage (known, partial, unknown, unvalued) | --color-chart-valuation-unknown |
#b9883e |
#a56c00 |
web/src/ValuationInsights.tsx |
the solid panel tint over the page, dark and light (dataviz validator); the dark values were retuned in lightness only (T165d); unvalued is a neutral gray on purpose |
| Usage valuation coverage (known, partial, unknown, unvalued) | --color-chart-valuation-unvalued |
#66748d |
#66748d |
web/src/ValuationInsights.tsx |
the solid panel tint over the page, dark and light (dataviz validator); the dark values were retuned in lightness only (T165d); unvalued is a neutral gray on purpose |
| Known estimate over time (bars; the selected interval is lighter) | --color-chart-valuation-trend-bar |
#5f51b3 |
#8478e0 |
web/src/ValuationInsights.tsx |
the solid panel tint over the page, dark and light (dataviz validator); the dark values were retuned in lightness only (T165d) |
| Known estimate over time (bars; the selected interval is lighter) | --color-chart-valuation-trend-selected |
#938cca |
#4a3fb0 |
web/src/ValuationInsights.tsx |
the solid panel tint over the page, dark and light (dataviz validator); the dark values were retuned in lightness only (T165d) |
The documentation site’s benchmark charts keep their own palette in docs-site/src/styles/bench-charts.css (dark #1d9db0, #d95926, #9085e9 on #0c1823; light #0f8fa3, #eb6834, #6250d6 on #f7fbfc; color-vision ΔE 8.3 dark and 14.9 light, contrast at least 3:1). They are drawn on their own opaque surfaces, not on glass; the dark one equals the surface token. If a surface changes, re-validate the benchmark palette before publishing.
What charts take from the tokens
Section titled “What charts take from the tokens”| Part | Token |
|---|---|
| Chart surface | The panel it sits on (--color-glass in the console) |
| Title | --font-display, --color-text |
| Labels, ticks and legends | --font-body, --color-text-soft |
| Series colors | --color-chart-<palette>-<key>, which changes with the theme |
| Grid lines | --color-line (no extra opacity: the role already carries its alpha) |
| Axes | --color-line-strong |
| Hover crosshair | --color-text-soft |
| Highlighted row (our gateway in comparisons) | --color-accent-low |
| Empty interval | Centered message in --color-text-soft (see Empty states) |
- Never color alone. Series also differ by shape (the benchmark charts use circle, square and diamond markers) or by direct labels, and every chart has a legend.
- A table for every chart. New charts come with a data table, as the eval comparison charts do, so screen-reader users and anyone who wants exact values get them.
- Unknown is not zero. An interval with no report is drawn as a gap or labelled “Not reported”, never as a zero line.
- Keep the slot. A series keeps its color across views of the same data (the first run stays blue when the baseline changes).
- No 3D, no dual axes, no pie charts for more than three parts.
- Reuse a validated set whole. The charts of custom dashboards draw up to five series with the eval run palette in its fixed order, each series with a marker of its own shape (circle, square, diamond, triangle, cross), a legend entry and a row of the table under the chart, because that palette separates neighbours, not every pair.
Example
Section titled “Example”.release-chart { background: var(--color-glass); border-radius: var(--radius-frame); box-shadow: var(--shadow-panel-solid); font-family: var(--font-body); color: var(--color-text-soft);}/* Series colors come from a validated palette in tokens.json, never a hex; the token carries the right value for the dark and the light theme. */.release-chart .series-1 { stroke: var(--color-chart-usage-1);}.release-chart .series-2 { stroke: var(--color-chart-usage-2);}.release-chart .grid line { stroke: var(--color-line);}