basic_bars
Renders a Bars payload from inline [widget.options].bars = [{label, value}]. Row order is preserved as authored; sorting / ranking is a renderer concern (list_ranking, chart_bar's sort option).
| Kind | Safety | Shapes |
|---|---|---|
| realtime | Safe | bars |
Options
Section titled “Options”| Option | Type | Required | Default | Description |
|---|---|---|---|---|
bars | list of {label, value: u64} | no | [] | Labeled bars. Order is preserved (sorting / ranking lives in the renderer via style = "medal" / max_items). |
Compatible renderers
Section titled “Compatible renderers”| Shape | Renderers |
|---|---|
bars | animated_boot, animated_postfx, animated_scanlines, animated_splitflap, animated_wave, chart_bar, chart_pie, list_ranking |
Preview
Section titled “Preview”bars via chart_bar
Section titled “bars via chart_bar”███ ███ ███ ███ ███ ███ ███ ███ ███ 12█ █7█ ali bob
[[widget]]id = "basic_bars"fetcher = "basic_bars"render = "chart_bar"bars via chart_pie
Section titled “bars via chart_pie”● ■ alice 63.2% ●●●●●●●●●●● ●●●●●●●●●●●●● ■ bob 36.8% ●●●●●●●●●●●●●●● ●●●●●●●●●●●●●●●●● ●●●●●●●●●●●●●●● ●●●●●●●●●●●●● ●●●●●●●●●●● ●
[[widget]]id = "basic_bars"fetcher = "basic_bars"render = "chart_pie"bars via list_ranking
Section titled “bars via list_ranking”1. alice 12 2. bob 7
[[widget]]id = "basic_bars"fetcher = "basic_bars"render = "list_ranking"