After some experimentation with the select event plotly_selected, I’ve noticed that
x: x_values,
y: y_values,
type: ‘scatter’,
mode: ‘markers’
allows the user to select points on the plot. However,
x: x_values,
y: y_values,
type: ‘scatter’,
mode: ‘lines’
Does not return any values after the event. (If you remove mode: 'lines'
, it looks like type: 'scatter'
defaults to mode: 'lines'
and so removing it doesn’t solve the issue.)
For my plot, I need to allow the user to select the points drawn up (as lines). This seems to be an issue, so my questions:
- For which modes are plotly_selected currently supported
- If plotly_selected currently supports
mode: 'lines'
, what can I do to get my code to work?
I apologize if this has already been asked somewhere. I’ve been unable to locate it if it has.
Thank you in advance