[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: https://codepen.io/etpinard/pen/YzPoOOB

Thank you a lot for your response ! :slight_smile:

Is there a way to extend this such that two different sliders modify a single function?

For example, if the function is a line, I’d want to have one slider to modify its slope and another slider to modify its intercept.