Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Tick Label format function

Is there a way to pass a tick label formatting function?

I am trying to do something like convert large numbers and reduce by 1000, for example

5000 should be 5k

any suggestions?

as an aside, it looks like for numbers over 10000 it already does this?

You can try using xaxis.tickformat.

I am trying to display data using plotly.js with german number formatting for example: “1.234,0”

layout = { yaxis: { tickformat: ‘.,’ } }

But it does not work for me.

I have found working example:

https://plot.ly/2503/~chris/

How do I achieve this ?

@dusan.sareny non-english digit separtors can be set using layout.separators.

1 Like

I can use custom separators for bar charts and line charts, but if I set layout.separators for pie charts this does not seem to take effect.

Does anybody have a working example?