Radial Bar Styling
Radial Bar Styling
Use this when: You need to darken radial-bar tracks and widen the gaps between rings.
Usage
from dataviz import save, radialbar
from dataviz.core.theme import Theme
from canvas.color import Color
def main() raises:
var goals: List[String] = ["Move", "Exercise", "Stand"]
var percent_complete: List[Float64] = [92.0, 68.0, 100.0]
var plot = radialbar(
goals,
percent_complete,
theme=Theme(radialbar_track_color=Color(200, 200, 200)),
ring_gap_fraction=0.45,
title="Daily Activity",
)
save(plot, "docs/src/examples/out_radialbar_styling.svg")Related
Related recipes: Radar Fill Alpha · Sankey Node Width
Relevant API: Theme · OutputFormat