Radial Chart
Compare categories as concentric rings against the largest category.
- Lighting
- Furniture
- Objects
- Textiles
Inspect a point or use the arrow keys
View chart data
| Category | Shipped |
|---|---|
| Lighting | 106 |
| Furniture | 83 |
| Objects | 58 |
| Textiles | 37 |
HTML
<figure class="rl-plot" data-rl-chart="radial">
<figcaption><strong>Collection volume</strong><span>Studio dispatch · sample week</span></figcaption>
<ul class="rl-plot-legend" aria-label="Categories"><li><i class="rl-plot-tone-0" aria-hidden="true"></i>Lighting</li><li><i class="rl-plot-tone-1" aria-hidden="true"></i>Furniture</li><li><i class="rl-plot-tone-2" aria-hidden="true"></i>Objects</li><li><i class="rl-plot-tone-3" aria-hidden="true"></i>Textiles</li></ul>
<svg viewBox="0 0 330 170" role="group" aria-label="Collection volume"><desc>Use the arrow keys to explore values. Open the data table for all values.</desc><circle class="rl-plot-track" cx="165" cy="85" r="70.25" pathLength="100" fill="none" stroke-width="11.9"/><g class="rl-plot-point rl-plot-tone-0" tabindex="0" role="img" aria-label="Lighting · Shipped: 106" data-rl-series="0" data-rl-plot-value="Lighting · Shipped: 106"><circle cx="165" cy="85" r="70.25" pathLength="100" fill="none" stroke-width="11.9" stroke="currentColor" stroke-linecap="butt" transform="rotate(-90 165 85)" stroke-dasharray="100 100"/></g><circle class="rl-plot-track" cx="165" cy="85" r="52.75" pathLength="100" fill="none" stroke-width="11.9"/><g class="rl-plot-point rl-plot-tone-1" tabindex="-1" role="img" aria-label="Furniture · Shipped: 83" data-rl-series="0" data-rl-plot-value="Furniture · Shipped: 83"><circle cx="165" cy="85" r="52.75" pathLength="100" fill="none" stroke-width="11.9" stroke="currentColor" stroke-linecap="butt" transform="rotate(-90 165 85)" stroke-dasharray="78.3 100"/></g><circle class="rl-plot-track" cx="165" cy="85" r="35.25" pathLength="100" fill="none" stroke-width="11.9"/><g class="rl-plot-point rl-plot-tone-2" tabindex="-1" role="img" aria-label="Objects · Shipped: 58" data-rl-series="0" data-rl-plot-value="Objects · Shipped: 58"><circle cx="165" cy="85" r="35.25" pathLength="100" fill="none" stroke-width="11.9" stroke="currentColor" stroke-linecap="butt" transform="rotate(-90 165 85)" stroke-dasharray="54.72 100"/></g><circle class="rl-plot-track" cx="165" cy="85" r="17.75" pathLength="100" fill="none" stroke-width="11.9"/><g class="rl-plot-point rl-plot-tone-3" tabindex="-1" role="img" aria-label="Textiles · Shipped: 37" data-rl-series="0" data-rl-plot-value="Textiles · Shipped: 37"><circle cx="165" cy="85" r="17.75" pathLength="100" fill="none" stroke-width="11.9" stroke="currentColor" stroke-linecap="butt" transform="rotate(-90 165 85)" stroke-dasharray="34.91 100"/></g></svg>
<span class="rl-plot-tooltip" data-rl-plot-tooltip aria-hidden="true" hidden></span>
<div class="rl-plot-readout" data-rl-plot-readout>Inspect a point or use the arrow keys</div>
<details class="rl-plot-data"><summary>View chart data</summary><div><table class="rl-table"><caption>Collection volume</caption><thead><tr><th scope="col">Category</th><th scope="col">Shipped</th></tr></thead>
<tbody><tr><th scope="row">Lighting</th><td>106</td></tr><tr><th scope="row">Furniture</th><td>83</td></tr><tr><th scope="row">Objects</th><td>58</td></tr><tr><th scope="row">Textiles</th><td>37</td></tr></tbody></table></div></details>
</figure>The SVG and data table share one dataset. Tab into the chart once. Arrow left and right inspect categories. Arrow up and down change series. The next Tab reaches the data table. The optional insight-charts.mjs helper renders this HTML on your server.
Use in your app
Copy these tags into your page head once. Serve the files at the paths shown, then add the example’s template to your page.
Page assets
<link rel="stylesheet" href="/mero.css">
<link rel="stylesheet" href="/mero-insights.css">
<script defer src="/mero.js"></script>
<script defer src="/mero-insights.js"></script>Optional server helper · insight-charts.mjs ↓
Download library and examples ↓