Black Lives Matter. Please consider donating to Black Girls Code today.

[Question] Two sliders on a single scatter plot : Is it possible?

Hi again :slight_smile:

I need to implement several sliders to control opacity of points depending on the class they belong.

For example, I have two classes : β€œA” or β€œB”.
I want to implement two different sliders : One who can change the opacity of points in the β€œA” class, and the second slider to change the opacity of points in the β€œB” class.

Is it possible with Plotly.js, or should I do otherwise ?

I’ve given a look to these topics : Two slide control in one chart
Two slides to control two charts, but I wondered if there were any updates since.

Thank you :slight_smile:

Here’s how:

1 Like

Thank you a lot for your response ! :slight_smile: