chartjs / chartjs/Chart.js

Data points in a line chart are not hidden after update

Open
#11,532 0 comments 0 reactions 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

`chart.options.point.radius` is set to 0 ->
User hovers the cursor over a data point and doesn't move it ->
Data point is shown ->
New data is added to the chart ->
Data point that was previously under the cursor disappears and only the new one is shown.

### Current behavior

All data points that were previously under the cursor are not hidden unless I hover over them again.

### Reproducible sample

https://codepen.io/paranoid739/pen/BavGaVp

### Optional extra steps/info to reproduce

Hover the cursor over any data point on the right side and don't move it.

### Possible solution

_No response_

### Context

_No response_

### chart.js version

v4.4.0

### Browser name and version

Google Chrome 118.0.5993.54 (Official Build) beta (64-bit)

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