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

Plotly line plot

Guys i have a problem putting color on my line graph in plotly. I have a data frame and when i choose one columns to use as color i have a rough link of the color values.

my code below:

fig = px.line(n_df, x=n_df.index, y=‘wait’,
color = ‘imp_charge’, hover_data = n_df.iloc[:,:-9])

I instead wanted something like this: