Appearance
Polar charts
Polar gauge
(plot) => ({
kind: "gauge",
series: values(plot, 1, "one"),
dial: {
range: [0, 1],
sweep: 270,
hole: 0.7,
zones: [{ from: 0.8, colour: { role: "warning" } }],
},
})Arguments
{ kind: "gauge" } is a GaugeChart
One value against a range, as an arc over a track.
from GaugeChart | ||
|---|---|---|
kindrequired | "gauge" | |
series | readonly [] | The readings: one concentric ring each, the first supplying the centre readout. |
dial | | The track the readings are drawn on. |
from ChartChrome | ||
title | string | The title above the plot. |
legend | boolean | Whether a legend is drawn. Drawn unless set false. |
at | | The corner this chart hangs off, instead of taking its turn in the layout. Unset, a chart fills the canvas or its cell of |
size | readonly [number, number] | How much of the canvas this chart takes, as a fraction of each side. A placed chart that names no size takes half the canvas each way, because filling it would hide whatever it was placed over. Without |
offset | readonly [number, number] | The offset from that corner, in logical pixels. Read only with |