Black Lives Matter. Please consider donating to Black Girls Code today.
Dash HoloViews is now available! Check out the docs.

Gantt charts -- remove white space between top of figure and bars?

There seems to be weird zoom issues with Gantt charts generated with Python.

In all of the examples, there’s quite a bit of white space between the top of the figure and the first bar.

But when I double click on the figure, the bars ‘snap’ into place.

Any idea how to generate the figure with plotly figure factory so that they look more like the 2nd picture?

Welp, answered my own question in record time :upside_down_face:.

It’s as easy as setting figure['layout']['yaxis']['autorange'] = True. Wonder why this isn’t the default setting, though.

1 Like