I have a dataset with columns for week, month and year, and I would like to plot variable in time using week, month and year as labels. Can something like this be done with plotly in python?

I am able to get 2 labels (week, month) using following code: df is my dataframe with columns week, month, year, value.
fig = go.Figure()
fig.add_trace(go.Scatter(x=[df['month'], df['week']],
y=list(df['value'])))
return fig





As far as I know, it is possible to have up to two levels of hierarchy on the x-axis. As a workaround, you can combine the year and month to get something close to what you intend. I created the code based on the scatter y-ru in the reference.