Skip to content

SpanGaps should allow Number #439

@dhelml

Description

@dhelml

Checklist

  • I am able to reproduce the bug with the latest version
  • I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.

Affected version

2.8.1

Description of the problem

Since Chart.js V3 spanGaps for a LineChart does support boolean and number parameter to define at what point the line should not be drawn.
OLD: (https://www.chartjs.org/docs/2.9.4/charts/line.html#line-styling)
NEW: (https://www.chartjs.org/docs/latest/api/interfaces/LineControllerChartOptions.html#spangaps)

Steps to reproduce the bug

new LineOptions().setSpanGaps(60*1000); does not work

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions