score:2

Accepted answer

chart.js does not draw a line between non-adjacent points, by default. this can be enabled, per dataset, with the spangaps property:

if true, lines will be drawn between points with no or null data. if false, points with nan data will create a break in the line.

...
{
    label: 'pattern',
    data: numbers1,
    fill: false,
    borderwidth: 2,
    bordercolor: 'red',
    spangaps: true
}
...

Related Query

More Query from same tag