Radial Bar
Radial Bar
A radial (multi-ring) progress chart.
Usage
from dataviz_mojo import radialbar
from dataviz_mojo.plot import save
def main() raises:
var teams: List[String] = ["Platform", "Growth", "Data", "Design"]
var completion: List[Float64] = [92.0, 78.0, 45.0, 60.0]
var c = radialbar(teams, completion)
save(c, "docs/src/examples/out_radialbar.svg")Args:
categories: One concentric ring per entry – the first entry drawn outermost.values: Each ring’s sweep, proportional tovalue / max(values); every value must be non-negative, and at least one positive.theme: Full styling knobs beyond this function’s own parameters (colors, margins, fonts, gridlines, …) – seeTheme’s docstring.width: Pixel width of the returnedPlot(.size()).height: Pixel height of the returnedPlot(.size()).title: The chart’s title, shown above the plot.subtitle: A secondary line shown under the title.x_title: The x-axis caption.y_title: The y-axis caption.