Formatting Gantt charts

Hello! I’m new to using plotly so I appologize if this is an easy problem to solve.

I’m using the create_gantt to plot some timelines but I need to format the Y axis labels (the text is too long in the output html file).It doesn’t seem to have a method that would allow me to do this. What’s my best approach (using Python if that matters)? Thanks

Hi there,

Right now the best approach would be to modify your figure before plotting by adding a tickangle parameter to the x-axis param under layout. It looks like this:

fig['layout']['xaxis']['tickangle'] = 45  # or any number you want

This should angle your text so that larger won’t overlap as much.

Does this help?