Open chungwong opened 3 months ago
Given the following Scatter example, it is unclear how to add an onclick listener to the chart.
let mut plot = Plot::new(); let trace = Scatter::new(vec![0, 1, 2], vec![2, 1, 0]); plot.add_trace(trace); let layout = plotly::Layout::new().title("Displaying a Chart in Yew"); plot.set_layout(layout); plotly::bindings::new_plot(id, &plot).await;
In Plotly.js, this can be acheived by capturing the plotly_click event, i.e.
plotly_click
plot.on('plotly_click', function(data) { .. });
Is it supported in plotly.rs?
Hi @chungwong. This is not supported. Would be nice if you could submit a PR with such a feature.
Given the following Scatter example, it is unclear how to add an onclick listener to the chart.
In Plotly.js, this can be acheived by capturing the
plotly_click
event, i.e.Is it supported in plotly.rs?