Bring Drag & Drop to Dash with Dashboard Engine. 💫 Learn how at our next webinar!

How can I have a lines graph from two different data sources?

I have two dataframes, and trying to create a line graph with two lines. I managed to create it as such:

fig = px.line(published_hour_us, x='Published Time', y='Counts')
fig.update_layout(title='Productivity, Europe', template='none', showlegend=True)
fig.update_xaxes(showgrid=False)

fig2 = go.Figure(fig.add_traces(data=px.line(published_hour_ca, x='Published Time', y='Counts')._data))
fig2.update_layout(title='Trending Video Published Time')

Which looks like this:


But I want to make the line different color and also legend.
Is there a better way to do this?

Thank you in advance!!! :smiley: