chart_pie
Pie chart of Bars slices with palette-cycled colours, percentages, and an adjacent legend. Use donut = true for a hollow centre, or pick chart_bar instead when exact comparisons between slices matter.
| Accepts | Animates |
|---|---|
bars | no |
Options
Section titled “Options”| Option | Type | Required | Default | Description |
|---|---|---|---|---|
legend | "right" | "bottom" | "top" | "left" | "none" | no | "right" | Legend placement. none hides the legend; any direction pins it to that side of the chart. |
donut | bool | no | false | Render a donut (hollow centre) instead of a filled pie. Implemented by substituting the slice glyph so the centre reads as empty. |
Theme tokens
Section titled “Theme tokens”Overridable via the [theme] section of your dashboard config.
| Key | Description |
|---|---|
palette_series | Palette cycled per-slice / per-series by chart_pie / chart_line / chart_scatter. TOML takes an array of colours. |
Compatible fetchers
Section titled “Compatible fetchers”Preview
Section titled “Preview”● ■ rust 42.0% ●●●●●●●●●●● ●●●●●●●●●●●●● ■ go 28.0% ●●●●●●●●●●●●●●● ●●●●●●●●●●●●●●●●● ■ ts 17.0% ●●●●●●●●●●●●●●● ●●●●●●●●●●●●● ■ py 13.0% ●●●●●●●●●●● ●
[[widget]]id = "github_languages"fetcher = "github_languages"render = "chart_pie"