ChartSeries becomes a separate line, and x_axis labels the horizontal axis. See Charts for the shared data, series, and formatting model.
Basic Usage
Reactive Series
Bindseries to a list in app state to choose which lines appear. The expression
must resolve to a list of dictionaries using wire names such as dataKey.
Reactive Series
visible value updates the chart. A sole template such as
"{{ chart_series | selectattr:'visible' }}" is equivalent.
Automatic palette colors follow the order of the resolved series list. Set
color on each series, as above, to keep its color when filtering or reordering
that list.
Axis Labels
Usex_axis_label for the category axis and y_axis_label for the value axis.
show_y_axis=False hides the value-axis title along with that axis.
Axis Labels
Minimal
Setshow_grid=False to remove the background gridlines. The line then reads as pure motion — useful in dense dashboards or inline trend callouts where direction matters more than precise values.
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.
Value Formatting
Usevalue_format to format numeric values on the value axis and in tooltips. It accepts the same pipe strings as Prefab expressions and data table columns, including currency, currency:EUR, percent:1, and compact:0.
API Reference
LineChart Parameters
list[dict] | str
required
Data as a list of dicts, or a
{{ field }} interpolation reference.list[ChartSeries] | RxStr
required
Series definitions, or an
Rx / sole template resolving to a list of series
dictionaries. Each series becomes a line on the chart.str | None
default:"None"
Data key for x-axis labels.
RxStr | None
default:"None"
Human-readable category-axis title.
RxStr | None
default:"None"
Human-readable value-axis title. Hidden when
show_y_axis=False.int
default:"300"
Chart height in pixels.
Literal["linear", "smooth", "step"]
default:"\"linear\""
Interpolation curve between data points.
bool
default:"False"
Show a dot at each data point.
bool
default:"False"
Show a legend below the chart.
bool
default:"True"
Show tooltips on hover.
bool
default:"True"
Show horizontal grid lines.
bool
default:"True"
Show the y-axis with its tick labels. Set to
False for a compact, axis-free reading where the shape matters more than exact values.str
default:"\"auto\""
Format value-axis ticks and tooltip values with an expression pipe such as
currency, currency:EUR, percent:1, or compact:0.str | None
default:"None"
Additional Tailwind CSS classes.
ChartSeries Parameters
Protocol Reference
LineChart
ChartSeries