Plotly Express Line Chart Color

@drorata try this:

import plotly.express as px
import pandas as pd

df = pd.DataFrame(dict(
    Date=[1,2,3],
    Averaged=[1,2,3],
    Raw=[2,3,1]
))
fig = px.line(df, x="Date", y=["Averaged", "Raw"],
             color_discrete_map={
                 "Average": "#456987",
                 "Raw": "#147852"
             })

fig.show()
1 Like