Line
Single and multi-series line charts for trends, time series, and continuous data.
Use lines to show change over a continuous dimension – typically time.
Single line
Multi-series
Set stroke to a field name to split into colored series. Grouping is automatic:
With dots
Layer a dot mark to highlight individual data points. Share data at the top level:
Properties
| Field | Type | Default | Description |
|---|---|---|---|
strokeWidth | number | theme | Line thickness in pixels (defaults to the theme's lineStrokeWidth). |
curve | "linear" | "monotone" | "step" | theme | Interpolation (defaults to the theme's curve). monotone smooths without overshoot. |
label | true | { end?: boolean | ("category" | "value")[]; points?: "extrema" | "all" | "ends" | false | { at: "extrema" | "all" | "ends"; show?: ("value" | "category")[] }; format?: string } | – | Direct labels: a series label at the line end (name, value, or both) and/or per-point labels. A points selection shows values; pass { at, show } to add the point's category. true names the series at its end. |