Add a label for the bottom of the chart.
(mut self, label: T)
| 142 | |
| 143 | /// Add a label for the bottom of the chart. |
| 144 | pub fn add_bottom_axis_label<T: ToString>(mut self, label: T) -> Self { |
| 145 | if let Some(ref mut axis) = self.x_axis_bottom { |
| 146 | axis.set_axis_label(label.to_string()) |
| 147 | } else { |
| 148 | panic!("You cannot add a label to bottom axis without adding an axis first.") |
| 149 | } |
| 150 | self |
| 151 | } |
| 152 | |
| 153 | /// Return the offset from the left where the view starts. |
| 154 | pub fn get_view_horizontal_start_offset(&self) -> isize { |