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

Adding traces during plotly_selecting

I’d like to call Plotly.addTraces() during a "plotly_selecting" event – https://codepen.io/cpsievert/pen/yEedVP

Note that brushing the points generates the desired Plotly.addTraces() calls, but they aren’t actually fired until the mouse is released – is there anyway to force Plotly.addTraces() to fire immediately?

Updates during drags are a little buggy at the moment.

I suggest subscribing to https://github.com/plotly/plotly.js/issues/2644 for the most up-to-date development info.