Hello, I am using plotly.express.bar, with text_auto=‘.3s’. to control the number of digits after the decimal point in the text. Unfortunately when the number is in the billions, the text suffix is ‘G’, which doesn’t match the axis suffix ‘B’. I understand this is as expected because ‘s’ is using SI notation. However, is there another code I can use to get them to match, please? How does the axis labels do it?
When I use text_auto=True, the suffices match, but then the number of digits after the decimal is a lot more than I need. Perhaps there is an alternate way to control the number of digits, without resorting to the text_auto format string?
Thank you for your help.
Suffix mismatch: , Too many digits:
p.s. To be more precise, I would like to use the “B” notation, instead of “G”.
Thanks for that! I guess it’s the “G” notation that I don’t want to use, since my audience is more familiar with “B”. Should have been more precise, sorry. It’s good to know that I can control the tickformat, though.
p.s. I’ve since modified the subject line and problem description.