frappe / charts

Simple, responsive, modern SVG Charts with zero dependencies
https://frappe.io/charts
MIT License
14.9k stars 716 forks source link

Option to format values over points on line/bar chart #340

Open milosptr opened 3 years ago

milosptr commented 3 years ago

I would like to have an option to format values, as on tooltip function formatTooltipXor formatTooltipY.

Right now I can only format axis values (shortenYAxisNumbers) and tooltip values. Is there some workaround?

Screenshot 2021-05-06 at 12 53 18
pajohns commented 2 years ago

This is a definite feature I would like to have. Having these labels makes it much easier for a user to know the change in value over time without having to mouse-over, however without being able to shorten the digits we end up with unwieldly numbers thus negating the benefits. It would be great if the same logic could be an option whereby we have formatting options over the display value and/or the ability to have the same shortened value whereby 200000 would be displayed as 200k.