I am new to plotly and dash, so this is my first question.
I have a dataframe with coordinates, each coordinate couple (E, N, U) have a quality level which is an integer ranging between 1 (best) and 7 (worst). I want to assign the colors to each quality (1: green, 2: yellow, … 7: red). Since these coordinates are represented on 3 subplots, so I work with ‘make_subplots’ adding traces for each coordinate versus datatime using the go.Scatter function.
When using plotly.express, I was able to set the color on a single plot using
where the latter is a dict linking the quality to the desired color. For this to work I had to change the Quality in the dataframe from int to str.
How could I get a similar result using the go.Scatter?