Config
Props
Data
When working with time series data, use the date prop to define the date format. Alternatively, you can translate the date values to Date objects to render the dates based on the default format.
Context
Axis
Legend
Date
Variants
Color modes
Style overrides
State
An empty data array is not an error — it means the query ran and matched
nothing, which is why emptyState is separate from errorState. Passing
loading rather than withholding the chart keeps the panel's height stable, so
the page does not jump when the data lands.
Grid and tooltip
grid and axis are separate on purpose: a bar chart usually wants horizontal
guides to compare heights against (grid="y") while still labelling both axes,
and a sparkline-style chart wants axis="none" with the grid left on.