Set the margins of the chart to provided values.
(mut self, top: isize, right: isize, bottom: isize, left: isize)
| 73 | |
| 74 | /// Set the margins of the chart to provided values. |
| 75 | pub fn set_margins(mut self, top: isize, right: isize, bottom: isize, left: isize) -> Self { |
| 76 | self.margin_top = top; |
| 77 | self.margin_right = right; |
| 78 | self.margin_bottom = bottom; |
| 79 | self.margin_left = left; |
| 80 | self |
| 81 | } |
| 82 | |
| 83 | /// Add the dataset to the chart's view. |
| 84 | pub fn add_view(mut self, view: &'a dyn View<'a>) -> Self { |