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

Tooltip: add dataPoint and rename value to formattedValue #7618

Merged
merged 2 commits into from
Jul 14, 2020

Conversation

benmccann
Copy link
Contributor

Closes #7563

This is an alternative to #7615

I renamed value to formattedValue to make clear that it's a formatted string and differentiate from the new dataPoint. This was able to simplify a lot of the samples

Copy link
Member

@kurkle kurkle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks a lot better to me, should make things easier for many use cases.

test/specs/plugin.tooltip.tests.js Show resolved Hide resolved
etimberg
etimberg previously approved these changes Jul 14, 2020
@etimberg etimberg merged commit 426d8de into chartjs:master Jul 14, 2020
etimberg pushed a commit that referenced this pull request Sep 1, 2020
* Tooltip: add dataPoint and rename value to formattedValue
* Add a test
@kurkle kurkle mentioned this pull request Feb 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improved tooltip callback parameters
3 participants