Add a label for the top of the chart.
(mut self, label: T)
| 132 | |
| 133 | /// Add a label for the top of the chart. |
| 134 | pub fn add_top_axis_label<T: ToString>(mut self, label: T) -> Self { |
| 135 | if let Some(ref mut axis) = self.x_axis_top { |
| 136 | axis.set_axis_label(label.to_string()) |
| 137 | } else { |
| 138 | panic!("You cannot add a label to top axis without adding an axis first.") |
| 139 | } |
| 140 | self |
| 141 | } |
| 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 { |
nothing calls this directly
no test coverage detected