A closed chart configuration.
Daisy.Render maps these values onto terezka/elm-charts. No elm-charts type
appears in this module's API, so chart authors cannot reach the underlying
library: the tree stays closed and every chart on a page is drawn the same way.
Colours are daisyUI semantic colours, emitted as CSS custom properties
(var(--color-primary)), so a chart follows whatever theme Page.theme
selected without the renderer knowing any concrete colour.
Every ChartConfig value.
The data a chart draws.
xLabels labels the bins along the x axis; each Series should have one point
per label. Missing points are read as 0, extra points are ignored.
A Donut ignores xLabels: each series becomes one ring segment, sized by the
sum of its points and coloured by its own colour.
One named, coloured line / bar set / ring.
The daisyUI semantic palette. These are the only colours a chart can use.
Every SemanticColor value.
The CSS colour value for a SemanticColor.
semanticColorToCss Primary --> "var(--color-primary)"
The kind of chart to draw.
Line,AreaandDonutread one point perxLabelper series.Bardraws the series side by side in each bin,StackedBarstacks them.