X Tutup
Skip to content

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

Open
milosptr wants to merge 3 commits intofrappe:masterfrom
milosptr:format-values-over-points
Open

Option to format values over points on bar chart and/or line chart#342
milosptr wants to merge 3 commits intofrappe:masterfrom
milosptr:format-values-over-points

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.

2 participants

X Tutup