Appearance
2D charts
Pie
(plot) => ({ kind: "pie", series: values(plot, 4, "one") })Arguments
{ kind: "pie" } is a PieChart
Proportions as arc sectors, one per entry.
No dial. A pie sweeps the whole circle, takes its proportions from its entries and reads none of a track's settings.
from PieChart | ||
|---|---|---|
kindrequired | "pie" | |
series | readonly [] | The sectors, in order. |
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 |