Saturday, 30 March 2019

How to align text left on a plotly bar chart (example image contained) [Plotly-Dash]

I need my y-axis to be on the inside like the image below (not interested in the dynamic update of graphs please ignore that). I want it positioned to the left and if the barchart is small it just goes over the bar:

enter image description here

I have tried text = 'y' and text-position = 'inside' but the text goes vertical or gets squashed for small bar charts so it can fit inside. For larger bar charts it's positioned on the right (i.e. at the end of the horizontal bar chart instead of the beginning). I just want it to write across as in the image above. Any ideas?



from How to align text left on a plotly bar chart (example image contained) [Plotly-Dash]

No comments:

Post a Comment