I am trying to make a plotly timeline where the x_start and x_end arguments are such that the x-axis is an integer nr of months instead of a date format. I have tried to use integers or arrays with integers with no luck.
Example code that fails:
df1 = pd.DataFrame(data = {'Task':['T1.1'], 'Start':np.array((1,)), 'Finish':np.array((5,)), 'text':[""], 'WorkPackage':['WP1']})
fig = px.timeline(df, x_start="Start", x_end="Finish", y="Task", text = "text", color = 'WorkPackage',width = None, height = None)