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

how to get the point information on hover #5131

Closed
adeel3612 opened this issue Jan 10, 2018 · 7 comments
Closed

how to get the point information on hover #5131

adeel3612 opened this issue Jan 10, 2018 · 7 comments

Comments

@adeel3612
Copy link

adeel3612 commented Jan 10, 2018

right now on hovering chartjs shows the tooltip is there any option i can get the information on hovering like using console.log.? I have tried onHover in the option but it is not working this is my fiddle

@simonbrunel
Copy link
Member

onHover works with 2.7.1 (fiddle)

@adeel3612
Copy link
Author

@simonbrunel yeah i understand that letter. It will be a great help to include the documentation by the versions choice. Many beginners visit the site for the documentation because i was using the 2.6. i was not aware to use it in hover then onHover. And i cannot update to 2.7 because there is major issue regarding the annotation not updating in 2.7

@simonbrunel
Copy link
Member

Documentation for version 2.6 is available at: http://www.chartjs.org/docs/2.6.0/

@simonbrunel
Copy link
Member

I think your issue with 2.6 is related to #4297, so you may need to use options.hover.onHover instead

@adeel3612
Copy link
Author

Yeah i understand that but still in documentation of 2.6 there is only onHover instead of hover.onHover. Also title padding did not work in 2.6 but in 2.7. So that is why i am saying that documentation should be updated.

@simonbrunel
Copy link
Member

simonbrunel commented Jan 18, 2018

That's an automated process and we don't update the built documentation for past versions, though I understand your point and that you can't upgrade to 2.7. You can still submit a PR to the online docs repository with the modifications about onHover.

What annotation issue with 2.7 are you referring? I think it's related to #5111.

I'm closing this issue as fixed and duplicate of #4296

@adeel3612
Copy link
Author

@simonbrunel sure i will give some time to update the documentation. Yeah #5111. issue is related to it.

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

No branches or pull requests

3 participants