Keep legend filter even after plotly.react calling

Hi everyone, I would like to keep filters from legend where I had clicked a legend and keep it even after plotly.react. I tried to get the legend clicked and trigger click/mousedown/mouseup event but didn’t work for me. So if anyone could help me with that

See https://github.com/plotly/plotly.js/issues/2608 for an example and rationale.

1 Like

Many thanks, it works !