Skip to content

Data visualization

Charts in the platform answer one question each, in the brand’s colors, with numbers people can trust. The look comes from the chart tokens, so ECharts, Chart.js, D3 or hand-written SVG all render the same.

Line and area: a trend over time
  • Revenue, $K
  • Spend, $K
Revenue rose from $42K to $78K over November; spend rose from $30K to $48K. 0255075100Nov 1Nov 10Nov 19Nov 28Nov 30
Markup
<div class="xg-card">
<figure class="xg-chart" style="margin:0">
<ul class="xg-legend">
<li>
<i class="s1 is-line">
</i>Revenue, $K</li>
<li>
<i class="s2 is-line">
</i>Spend, $K</li>
</ul>
<svg viewBox="0 0 600 220" role="img" aria-labelledby="dv-line-t" data-xg-chart>
<title id="dv-line-t">Revenue rose from $42K to $78K over November; spend rose from $30K to $48K.</title>
<g class="grid">
<line x1="40" x2="592" y1="196" y2="196"/>
<line x1="40" x2="592" y1="149" y2="149"/>
<line x1="40" x2="592" y1="102" y2="102"/>
<line x1="40" x2="592" y1="55" y2="55"/>
<line x1="40" x2="592" y1="8" y2="8"/>
</g>
<g class="axis">
<text x="32" y="200" text-anchor="end">0</text>
<text x="32" y="153" text-anchor="end">25</text>
<text x="32" y="106" text-anchor="end">50</text>
<text x="32" y="59" text-anchor="end">75</text>
<text x="32" y="12" text-anchor="end">100</text>
<text x="40" y="214" text-anchor="middle">Nov 1</text>
<text x="190.54545454545453" y="214" text-anchor="middle">Nov 10</text>
<text x="341.09090909090907" y="214" text-anchor="middle">Nov 19</text>
<text x="491.6363636363637" y="214" text-anchor="middle">Nov 28</text>
<text x="592" y="214" text-anchor="middle">Nov 30</text>
</g>
<path class="area" d="M40.0 117.0 L90.2 105.8 L140.4 111.4 L190.5 96.4 L240.7 87.0 L290.9 92.6 L341.1 77.6 L391.3 81.3 L441.5 68.2 L491.6 60.6 L541.8 64.4 L592.0 49.4 L592 196 L40 196 Z"/>
<path class="line series-2" d="M40.0 139.6 L90.2 137.7 L140.4 130.2 L190.5 132.1 L240.7 124.6 L290.9 118.9 L341.1 120.8 L391.3 113.3 L441.5 115.2 L491.6 107.6 L541.8 103.9 L592.0 105.8"/>
<path class="line series-1" d="M40.0 117.0 L90.2 105.8 L140.4 111.4 L190.5 96.4 L240.7 87.0 L290.9 92.6 L341.1 77.6 L391.3 81.3 L441.5 68.2 L491.6 60.6 L541.8 64.4 L592.0 49.4"/>
<circle class="dot series-1" cx="40" cy="117.04000000000002" r="3.5" data-tip="<strong>Day 1</strong>
<br>Revenue $42K · Spend $30K"/>
<circle class="dot series-1" cx="90.18181818181819" cy="105.76" r="3.5" data-tip="<strong>Day 4</strong>
<br>Revenue $48K · Spend $31K"/>
<circle class="dot series-1" cx="140.36363636363637" cy="111.4" r="3.5" data-tip="<strong>Day 7</strong>
<br>Revenue $45K · Spend $35K"/>
<circle class="dot series-1" cx="190.54545454545453" cy="96.36" r="3.5" data-tip="<strong>Day 10</strong>
<br>Revenue $53K · Spend $34K"/>
<circle class="dot series-1" cx="240.72727272727272" cy="86.96000000000001" r="3.5" data-tip="<strong>Day 13</strong>
<br>Revenue $58K · Spend $38K"/>
<circle class="dot series-1" cx="290.9090909090909" cy="92.6" r="3.5" data-tip="<strong>Day 16</strong>
<br>Revenue $55K · Spend $41K"/>
<circle class="dot series-1" cx="341.09090909090907" cy="77.56" r="3.5" data-tip="<strong>Day 19</strong>
<br>Revenue $63K · Spend $40K"/>
<circle class="dot series-1" cx="391.27272727272725" cy="81.32000000000001" r="3.5" data-tip="<strong>Day 22</strong>
<br>Revenue $61K · Spend $44K"/>
<circle class="dot series-1" cx="441.45454545454544" cy="68.16" r="3.5" data-tip="<strong>Day 25</strong>
<br>Revenue $68K · Spend $43K"/>
<circle class="dot series-1" cx="491.6363636363637" cy="60.64000000000001" r="3.5" data-tip="<strong>Day 28</strong>
<br>Revenue $72K · Spend $47K"/>
<circle class="dot series-1" cx="541.8181818181818" cy="64.4" r="3.5" data-tip="<strong>Day 31</strong>
<br>Revenue $70K · Spend $49K"/>
<circle class="dot series-1" cx="592" cy="49.35999999999999" r="3.5" data-tip="<strong>Day 34</strong>
<br>Revenue $78K · Spend $48K"/>
</svg>
</figure>
</div>
  • Title is the subject (“Revenue and spend”); the period is in the page head, not repeated on every chart.
  • Legend above the plot, left-aligned, in series order; a line series has a line key, a bar series a square.
  • Grid: horizontal lines only, --xg-color-chart-grid. No vertical grid, no plot border.
  • Axes: labels in --xg-color-chart-axis (4.5:1), 11 px, tabular figures. The value axis starts at zero for bars and areas; a line may start elsewhere when the band is narrow, and then says so.
  • Units in the legend or the axis title (“Revenue, $K”), never on every tick.
  • Tooltip on hover and focus: the date first, then every series with its value, same order as the legend.

Series 1 is always the brand color and the metric the chart is about. The others follow in a fixed order so a metric keeps its color across charts. Six series at most; beyond that, group into “Other”.

TokenXendiz lightXendiz darkWaardeX lightWaardeX dark
--xg-color-chart-1
series 1: the brand
#4b4cff#8384ff#1a3cf5#4d6bff
--xg-color-chart-2#0d9488#5eead4#0d9488#5eead4
--xg-color-chart-3#f15139#f78a79#ff4f5e#f76467
--xg-color-chart-4#6248e6#c4b5fd#6248e6#c4b5fd
--xg-color-chart-5#f59e0b#fcd34d#f59e0b#fcd34d
--xg-color-chart-6#666985#8f92ad#666985#8f92ad
--xg-color-chart-gridrgba(17, 18, 38, .08)rgba(255, 255, 255, .08)rgba(17, 18, 38, .08)rgba(255, 255, 255, .08)
--xg-color-chart-axis#4a4b63#a6a9c8#4a4b63#a6a9c8
--xg-color-chart-areargba(75, 76, 255, .14)rgba(131, 132, 255, .18)rgba(26, 60, 245, .12)rgba(77, 107, 255, .20)
Bar: comparing categories
Revenue by country: US $48K, DE $31K, UK $27K, IN $19K, BR $14K, JP $9K. USDEUKINBRJP $48K$31K$27K$19K$14K$9K
Markup
<div class="xg-card">
<figure class="xg-chart" style="margin:0">
<svg viewBox="0 0 600 180" role="img" aria-labelledby="dv-bar-t" data-xg-chart>
<title id="dv-bar-t">Revenue by country: US $48K, DE $31K, UK $27K, IN $19K, BR $14K, JP $9K.</title>
<g class="axis">
<text x="0" y="19">US</text>
<text x="0" y="49">DE</text>
<text x="0" y="79">UK</text>
<text x="0" y="109">IN</text>
<text x="0" y="139">BR</text>
<text x="0" y="169">JP</text>
</g>
<rect class="bar series-1" x="40" y="6" width="470" height="18" rx="4" data-tip="<strong>US</strong> $48K"/>
<text class="label" x="518" y="19">$48K</text>
<rect class="bar series-1" x="40" y="36" width="303.5416666666667" height="18" rx="4" data-tip="<strong>DE</strong> $31K"/>
<text class="label" x="351.5416666666667" y="49">$31K</text>
<rect class="bar series-1" x="40" y="66" width="264.375" height="18" rx="4" data-tip="<strong>UK</strong> $27K"/>
<text class="label" x="312.375" y="79">$27K</text>
<rect class="bar series-1" x="40" y="96" width="186.04166666666666" height="18" rx="4" data-tip="<strong>IN</strong> $19K"/>
<text class="label" x="234.04166666666666" y="109">$19K</text>
<rect class="bar series-1" x="40" y="126" width="137.08333333333334" height="18" rx="4" data-tip="<strong>BR</strong> $14K"/>
<text class="label" x="185.08333333333334" y="139">$14K</text>
<rect class="bar series-1" x="40" y="156" width="88.125" height="18" rx="4" data-tip="<strong>JP</strong> $9K"/>
<text class="label" x="136.125" y="169">$9K</text>
</svg>
</figure>
</div>
Donut: one share of two
Revenue split: open auction 62%, private deals 38%. 62%open auction
  • Open auction · 62%
  • Private deals · 38%
Markup
<div class="xg-card">
<figure class="xg-chart" style="margin:0;align-items:center;flex-direction:row;gap:24px;flex-wrap:wrap">
<svg viewBox="0 0 140 140" style="width:140px" role="img" aria-labelledby="dv-donut-t" data-xg-chart>
<title id="dv-donut-t">Revenue split: open auction 62%, private deals 38%.</title>
<circle class="series-1" cx="70" cy="70" r="52" fill="none" stroke-width="20" stroke-dasharray="200.56989430346988 326.7256359733385" stroke-dashoffset="0" transform="rotate(-90 70 70)" data-tip="<strong>Open auction</strong> 62%"/>
<circle class="series-2" cx="70" cy="70" r="52" fill="none" stroke-width="20" stroke-dasharray="122.15574166986863 326.7256359733385" stroke-dashoffset="-202.56989430346988" transform="rotate(-90 70 70)" data-tip="<strong>Private deals</strong> 38%"/>
<text x="70" y="68" text-anchor="middle" class="label" style="font-size:20px">62%</text>
<text x="70" y="86" text-anchor="middle" class="axis" style="font-size:11px;fill:var(--xg-color-chart-axis)">open auction</text>
</svg>
<ul class="xg-legend" style="flex-direction:column;gap:8px">
<li>
<i class="s1">
</i>Open auction · 62%</li>
<li>
<i class="s2">
</i>Private deals · 38%</li>
</ul>
</figure>
</div>
  • Bars for comparing categories: horizontal when labels are long (countries, partners), sorted by value, with the value printed at the end of each bar.
  • Donut only for two parts of a whole. Three or more parts become a sorted bar chart.
  • Never: 3D, dual value axes, pies with many slices, stacked areas with more than three series, gradients inside marks.
  1. The numbers must agree everywhere. A total on a chart, in a KPI card and in the report for the same filters and period is the same number. If one is an estimate, it says so.
  2. Every chart has a text alternative that states the finding (“Revenue rose from $42K to $78K over November”), as the SVG <title> or a caption, plus a table view for exact values.

Inter, 11 px for ticks, 12 px semibold for data labels, tabular figures throughout. Numbers are abbreviated with one decimal where it matters: $150.2K, 62.3M, 1.82B; percentages to one decimal; currency symbol before the number; a true minus sign (−).

Every chart token has a dark value: lighter series colors so they keep 3:1 on the dark card, a fainter grid, the axis ink from the dark text ramp. Charts never invert to white cards in dark mode.