Half-Circle Gauge
Half-Circle Gauge
Use this when: You need to sweep a gauge’s dial across a flat-bottomed half circle instead of the default three-quarter circle.
Usage
from std.math import pi
from dataviz import save, gauge
def main() raises:
var plot = gauge(
72.0,
start_angle=pi,
sweep_angle=pi,
title="Server Load",
width=400,
height=260,
)
save(plot, "docs/src/examples/out_compact_gauge.svg")Related
Related recipes: Bullet Styling · Effect Scatter Halo
Relevant API: Theme · OutputFormat