Pie Chart
See how each collection contributes to total volume.
- 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="pie">
<figcaption><strong>Share of dispatches</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="Share of dispatches"><desc>Use the arrow keys to explore values. Open the data table for all values.</desc><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"><path d="M165,85 L165,12 A73,73 0 0 1 217.19,136.04 Z"/></g><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"><path d="M165,85 L217.19,136.04 A73,73 0 0 1 102.05,121.97 Z"/></g><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"><path d="M165,85 L102.05,121.97 A73,73 0 0 1 111.7,35.12 Z"/></g><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"><path d="M165,85 L111.7,35.12 A73,73 0 0 1 165,12 Z"/></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>Share of dispatches</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 ↓