mWater / mwater-visualization

GNU Lesser General Public License v3.0
3 stars 5 forks source link

Rounding chart hover-over values #439

Closed Autio closed 4 years ago

Autio commented 4 years ago

When bar chart values have many decimals, it shows ten by default in the hover-over. I'd suggest this should always default to the first decimal at most.

image

grassick commented 4 years ago

This is not super-easy, as sometimes the decimals are important and it's hard to tell which in advance.

I've made it so that the Y axis and labels now follow the formatting as defined in the chart (e.g. rounded, currency, etc). Can you give it a try and see if it's good enough? The user would just need to select rounded.