One data point of different color in Plotly express violin plot

Is there a way to mark one data point in a different coloraturas from the other data points when working with a violin plot? Here is my code:


fig = px.violin(df,  y="Age of respondent by country", x="Location", box=True, color="Location",
                points='all'
               )

fig.show()

Hello iqra840

Looks that it’s not possible but joelostblom is trying to achieve.

https://github.com/plotly/plotly.py/issues/1938

1 Like