✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

Px.box styling individual marker color

Hi,
I am trying to change the color of each line/marker inside the plot.

I could only find a way to set all of them, but not individually. Snippet:

                for i in range(len(fig.data)):
                    if ((fig.data[i].y > limits["max"]) | (fig.data[i].y < limits["min"])).any():
                        fig.data[i].marker.color = "red"

Any workaround?
Many thanks!

Hello Together,
Today I realized that this also happens with the px.histogram, as you can see in the image bellow:
Picture1

Ideally only the outlier (pointed by the bold red arrow) should be in red.

I appreciate any suggestion!
Cheers!