How to change the way large numbers are displayed?

Hello! I have a chart that looks like this:

image

I want to change how the numbers on the line chart are displayed from 80.000k to 80k without changing the dataframe. I wish that had some way to do this on plotly.

Already tryed some tickformat inputs like

fig.update_yaxes(tickformat=".2s")

and others, but nothing seems to work.

Is this possible?

Try ("~s")

The formatting is based on this:

2 Likes

I think it’s not tickformat but texttemplate. Can you try that one: fig.update_traces(texttemplate="%{y:.2s}")

4 Likes

@hoatran my friend, you are a genius

1 Like