I’m trying to customize the box selection a little more than is currently available.
- Instead of changing the marker color within the selection, I’m looking to give the outline of each box selection a different color.
- I want to add an icon indicating the ability to remove that specific selection instead of just clicking on the plot to remove all the selections.
As for 1, I’ve tried accessing the paths with their classes and changing the color, but I’m unable to keep the selection color on zoom (the selection stays, but the styles disappear). See codepen.
I haven’t yet gotten to 2 yet since I’m not quite sure the best way to manipulate these paths.
What is the best way to access these paths and manipulate their CSS?
Appreciate your help!