Creating custom modes/tools

Is there any framework/interface/something to create new modes/tools (such as the the pan mode or the box select mode). For example, I’m trying to create a mode in which the user can draw a curve by dragging the mouse around the chart (something similar to the MS paint pencil tool, but working with data-points instead of pixels).

I know I could do that by temporarily locking the chart (making it impossible to zoom or pan) and calculating the position of the mouse in data coordinates, but I’d like to do so on a ‘less hacky’ fashion and I wonder if there’s any ‘official’ way. I don’t mind using react-plotly if it can help.

1 Like

Hi,

I would also like to do more or less exactly this. Did you find a solution?

Hi, anyone has good solutions for this? I am also looking for a way to do the same thing.