Black Lives Matter. Please consider donating to Black Girls Code today.

Bars on bar chart displayed over x-axis


I have this issue where on my bar charts, the bars are displayed over the x-axis, like so:

When testing in jupyter, it doesn’t display it like that, using the exact same code. Any ideas why?


It’s probably just related to the size of the chart - the labels rotate or change their display depending on how large the chart container is.

You can override all of these settings in the axes properties in figure.layout.xaxis