Skip to content

Radial Bar

radialbar() over named columns of a dataframe_mojo DataFrame (#743). Each argument names a column instead of holding the values. The axis titles default to the categories and values column names.

Radial Bar

Usage

from dataviz import radialbar
from dataviz import save

def main() raises:
    var workstreams: List[String] = [
        "Identity", "Billing", "Search", "Analytics", "Mobile", "Support",
    ]
    var completion: List[Int] = [96, 88, 81, 74, 63, 55]

    var c = radialbar(
        workstreams,
        completion,
        title="Illustrative Migration Completion (%)",
    )
    save(c, "docs/src/examples/out_radialbar.svg")

See Data shapes for shared input conventions.

Args:

  • df: The frame to read.
  • categories: The string column for this channel.
  • values: The numeric column for this channel.
  • ring_gap_fraction: See the list overload.
  • theme: See the list overload.
  • width: See the list overload.
  • height: See the list overload.
  • title: See the list overload.
  • subtitle: See the list overload.
  • x_title: See the list overload.
  • y_title: See the list overload.

Related

Related charts: Polar Bar · Polar

Relevant API: radialbar