I have a plot where the user can choose between different selection types to zoom into the displayed data. That works really well, I can switch between x, y and xy without problems.
Since the data is constantly updating, there are also situations where I would like to forbid selecting at all. Instinctively I would have thought
plot.getOptions().selection.mode = null;
would do that, but it only resets selection to the default 'xy' mode. I can unbind the plotselect event handler, of course, but selecting is still possilble (the rectangle shows up), even if nothing happens with it.
I also tried setting
plot.getOptions().selection = null;
but that leads to an error, because the selection plugin is still working and trying to access the selection mode.
Is there any way I can switch off the selection functionality altogether without having to build a new plot?
Thanks,
Jutta