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

Option to format values over points on bar chart and/or line chart #342

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

milosptr
Copy link

@milosptr milosptr commented May 9, 2021

Explanation About What Code Achieves:
  • When people use this chart to display bigger numbers (eg. > 1000, > 10.000) they would be grateful to have an option to shorten those numbers (eg. 1K, 10K, 100K, 1M), and the graph would be more readable with shortening numbers.
Screenshots/GIFs:

Screenshot 2021-05-09 at 10 25 49

Steps To Test:
  • Add formatValuesOverPoints: true in bar or line options object
TODOs:
  • Should be added to the documentation
  • Option could be in global config instead of in barOptions and lineOptions

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

Successfully merging this pull request may close these issues.

None yet

2 participants