Set a custom formatter for the x-axis tick labels.
(mut self, formatter: F)
| 230 | |
| 231 | /// Set a custom formatter for the x-axis tick labels. |
| 232 | pub fn with_x_tick_formatter<F>(mut self, formatter: F) -> Self |
| 233 | where |
| 234 | F: Fn(Tick) -> String + Send + Sync + 'static, |
| 235 | { |
| 236 | self.x_tick_formatter = Some(Arc::new(formatter)); |
| 237 | self |
| 238 | } |
| 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 |