Toggle Sidebar B
header.lightDarkMode D

Chart Line

Time-series line charts built on unovis-vue. Pass an array of rows plus a config that maps each series key to a label and color.

Default

A single-series line with a natural curve, gradient-free.

Comparison

ChartLine overlays a dashed previous-period line and a gradient area fill for at-a-glance trends.

Linear

Straight segments between points (CurveType.Linear).

Step

Stepped interpolation (CurveType.Step).

Interactive

Toggle between series; totals update in the header.

API Reference

Props, events, and slots for each sub-component.

ChartLineDefault

Props

PropTypeDefaultDescription
dataRecord<string, any>[]Series rows.
configChartConfigMap of dataKey → { label, color }.
dataKeystring"value"Row key for the y value.
xKeystring"date"Row key for the x value.

ChartLine

Props

PropTypeDefaultDescription
dataRecord<string, any>[]Series rows (each with a date key).
configChartConfigTheming map.
dataKeystring"value"Row key for the y value.
gradientbooleanfalseRender a gradient area fill under the line.
comparisonDataRecord<string, any>[][]Previous-period rows overlaid as a dashed line.
comparisonLabelstring"Previous Period"Legend/tooltip label for the comparison series.
yTickFormatter(d) => stringnullCustom y-axis tick formatter.

ChartLineLinear / ChartLineStep

Props

PropTypeDefaultDescription
dataRecord<string, any>[]Series rows.
configChartConfigTheming map.
dataKeystring"value"Row key for the y value.
xKeystring"date"Row key for the x value.

ChartLineInteractive

Props

PropTypeDefaultDescription
dataRecord<string, any>[]Series rows.
configChartConfigTheming map; series with a color become toggles.
dataKeysstring[]nullOverride which series are selectable.
xKeystring"date"Row key for the x value.
titlestring""Optional header title.
descriptionstring""Optional header description.