I am trying to plot the following data in plotly as a multi line chart with the date series in x axis and sales figures of departments in y axis. I am using pandas dataframe to hold the data.
final_cols = [col for col in list(df.columns) if col != 'Date']
data = [go.scatter(x = df['Date'],
y = df[col],
mode = 'lines',
name = col) for col in final_cols]
layout = go.Layout(
title = 'Multiline chart'
)
fig = go.Figure(data=data,layout=layout)
Thanks Abhinav. How do I skip two dates in the x axis while displaying the plots? Say 1/5/2018 4/5/2018 etc. Also while hovering on the plot, the dept name should be displayed along with the value.