Add an axis at the bottom of the chart.
(mut self, scale: &'a dyn Scale<T>)
| 88 | |
| 89 | /// Add an axis at the bottom of the chart. |
| 90 | pub fn add_axis_bottom<T: ToString>(mut self, scale: &'a dyn Scale<T>) -> Self { |
| 91 | self.x_axis_bottom = Some(Axis::new_bottom_axis(scale, &self)); |
| 92 | self |
| 93 | } |
| 94 | |
| 95 | /// Add an axis at the left of the chart. |
| 96 | pub fn add_axis_left<T: ToString>(mut self, scale: &'a dyn Scale<T>) -> Self { |