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

Format numbers in tooltip #7004

Merged
merged 3 commits into from
Jan 27, 2020
Merged

Conversation

benmccann
Copy link
Contributor

I have a dataset with numbers in the millions and it's impossible to read at the moment. This fixes it. Pictures below for the logarithmic sample

Before

before

After

after

etimberg
etimberg previously approved these changes Jan 23, 2020
Copy link
Member

@etimberg etimberg left a comment

Choose a reason for hiding this comment

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

Seems like a sensible change in the defaults

@kurkle
Copy link
Member

kurkle commented Jan 26, 2020

This is fine if the value scale is numeric. It can however be category, time, custom etc.

image

@benmccann
Copy link
Contributor Author

Ok, I updated it to apply only to linear and log scales

@etimberg etimberg merged commit 1ae11c4 into chartjs:master Jan 27, 2020
@etimberg etimberg added this to the Version 3.0 milestone Jan 27, 2020
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.

3 participants