Gantt charts in plotly

70 Views Asked by At

Hi I have created a Gantt chart with simple code that I find online:

# gantt is just my pandas dataframe

import plotly.figure_factory as ff
fig = ff.create_gantt(gantt, colors = ['rgb(170, 14, 200)', width = 742, height = 580)
fig.show()

For some reason when I run this the output seems fine except the xaxis dates are missing a lot of months and the ending is cutoff so it looks like this:

Apr 2024 Jul 2024 Oct 2024 Jan 2025 Apr 2025 Jul 2025 Oct

can anyone help with this?

0

There are 0 best solutions below