Add the dataset to the chart's view.
(mut self, view: &'a dyn View<'a>)
| 82 | |
| 83 | /// Add the dataset to the chart's view. |
| 84 | pub fn add_view(mut self, view: &'a dyn View<'a>) -> Self { |
| 85 | self.views.push(view); |
| 86 | self |
| 87 | } |
| 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 { |