Hello, I need some help with tickformat-configuration.
For example, in the y-axis, the TICKS of big values are formatted like this:
I want to localize that, in german it should be
Any ideas how to do that? Google wasn’t helpfull for me.
Take a look at this discussion https://community.plotly.com/t/how-to-change-unit-in-vertical-text/34731, to learn how to use yaxis
@empet Thank you. Now I have a working solution.
I needed to do some math, so that it works with small values [0-999]
and with bigger values [1000 - 100.000.000] (“tsd”, “Mio”)
If values bigger than one billion are used, I just use the default “ticks”, because there is no corresponding abbreviation for “Billion” in german
Now, the only thing what displeases me, is that I have a fixed-amount of ticks for all screen-sizes.
Before this solution, I also tried to use the Plotly-JS Localisation-Files:
but that did not help me.
I would suggest that Plotly-JS should be able to “translate” the “k” (kilo) and “M” (million) with these translationfiles! Then I wouldn’t need to write “tickvals” and “ticktext” when I just want to translate a suffix…?!
You may want to propose such an enhancement here https://github.com/plotly/plotly.js/issues.