<GraphProvider> wrapping a <GraphRenderer>. The provider owns the data and spec and compiles them; the renderer paints the result.
GraphProvider
Holds the inputs and produces the compiled spec. It recompiles wheneverinput, data or theme change.
The data table the spec draws from.
Locale for formatting displayed values. See Formatting &
locale.
Maps font ids referenced by the spec to CSS
font-family strings.Fires when a compile produces errors. The chart also renders an error panel in
place rather than blanking.
Fires with any warnings a successful compile produced.
Fires when an interactive edit (in
editable mode) mutates the spec — persist
the result here.Custom geoms, stats and transforms registered for this graph. Frozen at mount.
GraphRenderer
Paints the provider’s compiled spec. It must be a descendant of a<GraphProvider>.
'readonly' displays the chart with full interactivity; 'editable' adds
inline editing of titles and labels, reported through the provider’s
onChange.Whether hover tooltips are shown. See
Interactivity.
Animate transitions between compiled states.
Called when the container resizes, in every sizing mode.
Keep inputs stable
The provider recompiles wheninput or data change by reference. If you build the spec or data inline in a component, memoize them so an unrelated re-render doesn’t trigger a needless recompile:
Errors never blank the page
A compile failure or a render-time throw is caught and shown as an error panel in place of the chart, so a bad spec degrades gracefully instead of taking down the surrounding UI. UseonError to log or surface the diagnostics yourself.
Related
- How a chart is built — the compile → render model
- Sizing · Theming · Slots

