If I’m using the selection tool for my scatterplot and I click a selection then the selected points stay current opacity. Then if I click outside of that selection say at an empty area, I want the selection box to disappear and all the points to go back to having the opacity they had before being selected.
Currently, if I double click, it will do what I want it to do.
// this is written in Coffeescript
plotlyDiv.on('plotly_selected', (data) -> if data == null // make points go back to normal opacity and remove selection box )