Plot multiple line charts

How to plot more than one line charts in a single line chart. And also add different color to different lines. Add legend to understand which color represents which lines. I tried two different codes, but none of the works.
Code 1:

st.line_chart(stock, x="ds", y="y", color="#0514C0")
st.line_chart(prediction, x="ds", y="y", color="#4CC005")

Code 2:

fig = px.line(stock, x="ds", y="y")
fig = px.line(prediction, x="ds", y="y")
# Plot!
st.plotly_chart(fig, use_container_width=True)

Hi @Sanniddha

I’ve answered here:

Best,
Charly

Hi @Charly_Wargnier

I need to plot similar to this:


But this should be interactive, like your graph

I’ve answered here:

Let’s try to keep the discussion there :slight_smile:

Best,
Charly