ChartSeries becomes a separate line, and x_axis labels the horizontal axis.
Basic Usage
Minimal
Turn off the grid for a cleaner look.Smooth
Setcurve="smooth" for gently curved lines between data points.
Step
Setcurve="step" to connect points with step-shaped lines. This is useful for data that changes in discrete jumps.
With Dots
Setshow_dots=True to render a dot at each data point along the lines.
API Reference
LineChart Parameters
Data as a list of dicts, or a
{{ field }} interpolation reference.Series definitions — each becomes a line on the chart.
Data key for x-axis labels.
Chart height in pixels.
Interpolation curve between data points.
Show a dot at each data point.
Show a legend below the chart.
Show tooltips on hover.
Show horizontal grid lines.
Additional Tailwind CSS classes.
ChartSeries Parameters
Data field to plot — must match a key in the data dicts.
Display label for legends and tooltips. Defaults to the
data_key value.CSS color override. By default, colors cycle through the theme’s chart palette (
--chart-1 through --chart-5).Protocol Reference
LineChart
ChartSeries