āœŠšŸæ Black Lives Matter. Please consider donating to Black Girls Code today.
šŸ‡ Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

Select variable mapped to color from dropdown menu

Is it possible to select the variable which to map color via a dropdown menu in plotly?

I have created the chart below, in which the datapoints currently colored by the variable df$ErrorFlag .

Iā€™d like to enable the user to select one of 4 different variables by which to color the datapoints:

df$Number_SNPS , df$Quality , $df$Cohort, or df$ErrorFlag

Thank you!

1 Like