You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using LargeValueFormatter to format Y-axis values. It works fine for all the locales except for English(Australia).
e.g- it returns values like 4K, 8K, 16K etc, for all other locales but when I change the locale to English(Australia) it returns the same values as 4e03, 8e03, 16e3 ....
How can I fix this? My doubt is on the DecimalFormat instance as it uses locale internally.
Device: [Emulator, Samsung S7, Moto Z]
Android Version [8, 9]
Library Version (v 3.0.3)
The text was updated successfully, but these errors were encountered:
amitks2015
changed the title
LargeValueFormatter looks to be broken for locale en_AU
LargeValueFormatter looks to be broken for locale English(Australia)
Sep 21, 2018
Yes because of locale issue. "E" becomes lowercase then regex is no longer work.
While waiting for official patch from MPAndroidChart, you can temporary fix by creating your own LargeValueFormatter, similar to original source code, but has small modification in constructor:
I am using LargeValueFormatter to format Y-axis values. It works fine for all the locales except for English(Australia).
e.g- it returns values like 4K, 8K, 16K etc, for all other locales but when I change the locale to English(Australia) it returns the same values as 4e03, 8e03, 16e3 ....
How can I fix this? My doubt is on the DecimalFormat instance as it uses locale internally.
The text was updated successfully, but these errors were encountered: