Hi,
When working with multiple lines on a chart, I used color_discrete_map to map the variable to the color.
What if I have just a single line, how do I go about specifying the color for that one line?
Thank you
Hi,
When working with multiple lines on a chart, I used color_discrete_map to map the variable to the color.
What if I have just a single line, how do I go about specifying the color for that one line?
Thank you
I figured it this out.
One need to pass the color_discrete_sequence as argument into the px.line
fig=px.line(color_discrete_sequence=[βgreenβ])