Skip to content

Null points with nearest interaction with spanGaps: true #10325

@bernaoliveira

Description

@bernaoliveira

Expected behavior

If there are more than N null points in a chart I expect that nearest point will be interacted, while the cursor is between this two points.

Current behavior

If there are more than one null point between 2 points interaction mode 'nearest' does not work with intersect: false.

Reproducible sample

https://codesandbox.io/s/vue-chart-3-chart-js-issue-template-forked-xzprgj

Optional extra steps/info to reproduce

No response

Possible solution

No response

Context

No response

chart.js version

3.7.0

Browser name and version

Chrome 100.0.4896.88

Link to your project

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions