Provide a custom highlighter for pick point.
(mut self, provider: F)
| 110 | |
| 111 | /// Provide a custom highlighter for pick point. |
| 112 | pub fn with_pick_highlight_provider<F>(mut self, provider: F) -> Self |
| 113 | where |
| 114 | F: Fn(TooltipContext<'_>, &mut HighlightPoint) -> Option<String> + Send + Sync + 'static, |
| 115 | { |
| 116 | self.pick_highlight_provider = Some(Arc::new(provider)); |
| 117 | self |
| 118 | } |
| 119 | |
| 120 | /// Provide a custom highlighter for hovered point. |
| 121 | /// |