Skip to content

Latest commit

 

History

History
166 lines (147 loc) · 4.38 KB

File metadata and controls

166 lines (147 loc) · 4.38 KB

Lines

Configure the appearance and behaviour of line.

Options

Option Type Default Description
data number[] Required. Array of data points
colour string #000000 Hex color for the line
label string line-0 Unique label for the series
interpolation linear|cubic linear Line curve style
style solid|dashed solid Line stroke pattern
annotatePoints boolean false Show circles at data points
area object Area fill configuration

Interpolation

Choose how points are connected:

Value Description
linear Straight lines between points
cubic Smooth curves through points

Line Styles

Value Description
solid Continuous line (default)
dashed Dashed line pattern

Area Fill

Fill the region under a line:

{
    area: {
        fill: true;
    }
}

::: info When area color matches line color, 60% opacity is applied automatically. :::

Point Annotations

Show markers at each data point with annotatePoints: true: