MCPcopy Create free account
hub / github.com/donkeyteethUX/iced_plot / add_hover_point

Method add_hover_point

src/plot_widget.rs:485–487  ·  view source on GitHub ↗

Add a hover point to the plot.

(&mut self, point_id: PointId)

Source from the content-addressed store, hash-verified

483 for (i, position) in series.positions.iter().enumerate() {
484 let distance = (position[0] - x).abs();
485 if distance < min_distance {
486 min_distance = distance;
487 nearest_point = Some(PointId {
488 series_id,
489 point_index: i,
490 });

Callers 3

update_plotFunction · 0.80
updateMethod · 0.80
updateFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected