chartjs / chartjs/Chart.js

Null points with nearest interaction with spanGaps: true

Open
#10,325 1 comment 1 reaction 0 assignees View on GitHub
type: bug
Dominant language
JavaScript
Stars
67.7k
Forks
11.9k
Avg merge
7h 39m
Merged PRs (30d)
5

Description

### 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_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.