Data
Donut Chart
semantic HTMLCompact part-to-whole visualization for a small number of categories.
Live example
| Published | 64 |
|---|---|
| Draft | 21 |
| Review | 15 |
<div data-standard-component="donut-chart" label="Posts by status" data='{"labels":["Published","Draft","Review"],"values":[64,21,15]}'><table><caption>Posts by status</caption><tbody><tr><th>Published</th><td>64</td></tr><tr><th>Draft</th><td>21</td></tr><tr><th>Review</th><td>15</td></tr></tbody></table></div>Variants and sizes
The pattern inherits theme and density tokens. Use compact, comfortable, or roomy density when the surrounding screen requires it.
compactcomfortableroomy
Public API
| Contract | Value |
|---|---|
| Implementation | semantic HTML |
| Status | stable |
| License | free |
| Since | 0.1.5 |
| HTML contract | Native HTML elements and attributes |
| Events | Native browser events |
Accessibility
ECharts SVG visualization with an accessible SSR data-table fallback.
Server template guidance
<!-- Render the semantic HTML on the server. Load enhancement JavaScript only when this interaction is needed. -->