-
Notifications
You must be signed in to change notification settings - Fork 762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tooltip in scatter plot with multiple series shows unrelated data points for each series #537
Comments
I am having this exact issue. Are there any workarounds? |
@kateradu I haven't found one yet! |
I am having this exact issue. do you found a solution? :( |
@zaklyon23 Not yet :(. I'd suggest thumbs-upping this issue to try and give it more visibility. |
I am having the same issue as well. Is there any workaround for this? |
Hi, still have the same issue. Though it seems like the issue is not just in angular, but also in chart.js. |
@stannida meant this fiddle for chart-js. In principle one could use For angular, however, the problem persists due to an animation that makes the chart looks awkward. Notice how two points are animated although the tooltip shows information of only one point. |
After taking a look in the code, the trick is: Example for angular Example for pure chartjs: Examples from the original question: |
Overview
Describe the issue. What is the issue and what did you expect?
When using a line scatter plot with multiple series, the tooltip displayed when hovering over a point contains data for other X values. For example, if one series has a data point at
x = 20
, but the second series does not have a data point atx = 20
, the tooltip will show data for both series; it will show the incorrect value for the second series when hovering over the data point atx = 20
.See the provided jsfiddle for a more complete demonstration and description of the problem.
I would expect (in the example above and in the demo) that hovering over
x = 20
would only show data from the first series in the tooltip.Please make sure to review and check all of these items:
Step to reproduce
Here is an example that demonstrates this behavior (includes instructions on how to reproduce): https://jsfiddle.net/NathanFriend/3mxee1dt/
Here is an example of a similar chart using vanilla Chart.js that does not exhibit the behavior: https://jsfiddle.net/NathanFriend/ddrhpmuw/
The text was updated successfully, but these errors were encountered: