Set a custom formatter for the y-axis tick labels.
(mut self, formatter: F)
| 239 | |
| 240 | /// Set a custom formatter for the y-axis tick labels. |
| 241 | pub fn with_y_tick_formatter<F>(mut self, formatter: F) -> Self |
| 242 | where |
| 243 | F: Fn(Tick) -> String + Send + Sync + 'static, |
| 244 | { |
| 245 | self.y_tick_formatter = Some(Arc::new(formatter)); |
| 246 | self |
| 247 | } |
| 248 | |
| 249 | /// Set a custom tick producer for generating tick positions along the x-axis. |
| 250 | /// |