Add data points.
(&mut self, mut points: crate::Points<'a>)
| 2058 | |
| 2059 | /// Add data points. |
| 2060 | pub fn points(&mut self, mut points: crate::Points<'a>) { |
| 2061 | if points.series.is_empty() { |
| 2062 | return; |
| 2063 | } |
| 2064 | |
| 2065 | // Give the points an automatic color if no color has been assigned. |
| 2066 | if points.color == Color32::TRANSPARENT { |
| 2067 | points.color = self.auto_color(); |
| 2068 | } |
| 2069 | self.items.push(Box::new(points)); |
| 2070 | } |
| 2071 | |
| 2072 | /// Add arrows. |
| 2073 | pub fn arrows(&mut self, mut arrows: crate::Arrows<'a>) { |