I am creating bar charts in plotly
with y-axis representing percentages or shares within 0-1. The y-axis displays as 0.05 instead of 5.0%.
Is there a way
The plotly
documentation directs us to this page which has a comprehensive list of available formatting options.
In this case, formatting percentages like 5%
, tickformat='%'
should suffice. If you want to display decimal points too, then something like '.n%'
would do the trick (replace n with desired number of digits after decimal point).
The github page referenced above conatins many more formatting options. Cheers!