Add a label for the right of the chart.
(mut self, label: T)
| 112 | |
| 113 | /// Add a label for the right of the chart. |
| 114 | pub fn add_right_axis_label<T: ToString>(mut self, label: T) -> Self { |
| 115 | if let Some(ref mut axis) = self.y_axis_right { |
| 116 | axis.set_axis_label(label.to_string()) |
| 117 | } else { |
| 118 | panic!("You cannot add a label to right axis without adding an axis first.") |
| 119 | } |
| 120 | self |
| 121 | } |
| 122 | |
| 123 | /// Add a label for the left of the chart. |
| 124 | pub fn add_left_axis_label<T: ToString>(mut self, label: T) -> Self { |
nothing calls this directly
no test coverage detected