Add a vertical reference line to the plot. If there exists a line with the same `vline.id` ([ShapeId]), the old one will be replaced.
(&mut self, vline: VLine)
| 237 | ) -> Result<(), SeriesError> { |
| 238 | if let Some(series) = self.series.get_mut(id) { |
| 239 | f(series); |
| 240 | self.data_version += 1; |
| 241 | Ok(()) |
| 242 | } else { |
| 243 | Err(SeriesError::NotFound(*id)) |
| 244 | } |
| 245 | } |