Skip to content

CSS-only charts built with Orbit

Charts are usually the moment in a project where you reach for a 200KB charting library. For radial charts in particular — pies, donuts, sunbursts — that’s overkill: the data shape is simple, the layout is fixed, and the only thing the library is really doing is computing arc paths and labeling them. Orbit removes that step entirely. Each slice is an <o-arc> element with a value attribute. The arcs auto-size based on their values. There’s no SVG, no canvas, and no JavaScript.

These three examples cover the most useful radial chart types.

Examples

Donut vs pie vs sunburst

Use caseRecommended
Single-level breakdown with a centerable totalDonut
Single-level breakdown, dense layoutPie
Hierarchical / nested categoriesSunburst

All three are built from <o-arc> elements and weighted with the value attribute. Once you understand the donut, the other two are minor variations.