Is there a solution to this now?
This is very helpful! It would be great to include a sample line chart with multiple y values on the line charts documentation page. Feel free to use this one, for instance:
df = pd.DataFrame(
{'Date':['2011-5-10', '2011-5-11', '2011-5-12', '2011-5-13', '2011-5-14',
'2011-5-15', '2011-5-16', '2011-5-17', '2011-5-18', '2011-5-19'],
'Visitors':[532, 510, 217, 554, 293, 442, 510, 632, 440, 799]})
df['3 Day Moving Avg'] = np.round(df['Visitors'].rolling(3).mean(), 2)
px.line(df, x = 'Date', y = ['Visitors', '3 Day Moving Avg'])
Hereβs a static screenshot of the output:
2 Likes