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

Method with_hover_highlight_provider

src/plot_widget_builder.rs:124–130  ·  view source on GitHub ↗

Provide a custom highlighter for hovered point. If not provided, a default hover highlight provider will be used that shows the tooltip text with series label, x and y coordinates of the point ([`PlotWidgetBuilder::default_hover_highlight_provider`]).

(mut self, provider: F)

Source from the content-addressed store, hash-verified

122 /// If not provided, a default hover highlight provider will be used that shows the tooltip text with
123 /// series label, x and y coordinates of the point ([`PlotWidgetBuilder::default_hover_highlight_provider`]).
124 pub fn with_hover_highlight_provider<F>(mut self, provider: F) -> Self
125 where
126 F: Fn(TooltipContext<'_>, &mut HighlightPoint) -> Option<String> + Send + Sync + 'static,
127 {
128 self.hover_highlight_provider = Some(Arc::new(provider));
129 self
130 }
131
132 /// Enable or disable the small cursor position overlay shown in the
133 /// lower-left corner of the plot. By default it's disabled when not set.

Callers 8

newFunction · 0.80
newMethod · 0.80
new_plotFunction · 0.80
newMethod · 0.80
newFunction · 0.80
newFunction · 0.80
newFunction · 0.80
new_scatterFunction · 0.80

Calls 1

newFunction · 0.50

Tested by

no test coverage detected