Skip to content
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

When update() is called, we need to reset the tooltip. #4840

Merged
merged 2 commits into from Oct 28, 2017
Merged

Conversation

etimberg
Copy link
Member

Resolves #3791. May also resolve #3165

@etimberg etimberg added this to the Version 2.8 milestone Oct 15, 2017
@benmccann
Copy link
Contributor

Looks good to me

One suggestion perhaps not directly related to your PR would be to add a short doc for lastActive. It's the last active what? It's not clear to me

@benmccann
Copy link
Contributor

Should we have a unit test for this behavior?

@simonbrunel
Copy link
Member

+1 for unit test

@simonbrunel
Copy link
Member

@etimberg is this one safe enough for 2.7.1?

@etimberg
Copy link
Member Author

I think this is safe enough for 2.7.1 but if we're hesitant we can wait until 2.8.0

@benmccann
Copy link
Contributor

Hmm. Travis errored again:

27 10 2017 01:25:26.244:WARN [Firefox 56.0.0 (Linux 0.0.0)]: Disconnected (1 times), because no message in 10000 ms.

@etimberg can you rebase this against master to see if the attempted fix will solve the CI issue?

@etimberg
Copy link
Member Author

@benmccann rebased!

@benmccann
Copy link
Contributor

lgtm!

@benmccann
Copy link
Contributor

@simonbrunel any thoughts on this one?

@simonbrunel simonbrunel merged commit 13e9676 into master Oct 28, 2017
@simonbrunel simonbrunel deleted the 3791 branch October 28, 2017 08:20
yofreke pushed a commit to yofreke/Chart.js that referenced this pull request Dec 30, 2017
@Evertvdw
Copy link

How about #4991 with this update? I'm using 2.7.0 at the moment because I do not want my tooltips to hide on an update() call and I don't know how to manually prevent this behaviour or redraw them on the last active point.

@pantonis
Copy link

Any update on this? Is it out?

@Evertvdw
Copy link

Evertvdw commented Jun 6, 2018

Second that, any news on this?

@benmccann
Copy link
Contributor

benmccann commented Jun 6, 2018

This PR has been merged and is in the latest version of Chart.js

If you want the fix for #4991 please discuss it there

@pantonis
Copy link

pantonis commented Jun 7, 2018

@benmccann You mean 2.7.2?

@benmccann
Copy link
Contributor

It's in 2.7.1 according to the release notes
https://github.com/chartjs/Chart.js/releases/tag/v2.7.1

@basickarl
Copy link

basickarl commented Mar 21, 2019

Hi. I'm running 2.7.3 (https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.3/Chart.min.js) and my custom tooltip still contains old data and is at the incorrect position after using "chart.update()". I add and remove data before calling chart.update();. I also tried 2.8.0 and it also does not work there.

Screenshot 2019-03-21 at 13 58 30

As you see in the image. The line updates correctly (shifts to the left). But the tooltip has not re-rendered.

@Evertvdw
Copy link

@basickarl That is correct, the tooltip is not updated in the current version of Chart.js. I'm working on a PR together with @kurkle to fix this.

@basickarl
Copy link

@Evertvdw Thanks for the quick reply man! I was under the impression that it was fixed with this merge. Thanks for clarifying dude!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants