Add a horizontal reference line to the plot. If there exists a line with the same `hline.id` ([ShapeId]), the old one will be replaced.
(&mut self, hline: HLine)
| 260 | return Err(SeriesError::FillEndpointNotFound(fill.begin)); |
| 261 | } |
| 262 | if !self.is_fill_endpoint_available(fill.end) { |
| 263 | return Err(SeriesError::FillEndpointNotFound(fill.end)); |
| 264 | } |
| 265 | self.fills.insert(fill.id, fill); |
| 266 | self.data_version = self.data_version.wrapping_add(1); |
| 267 | Ok(()) |
| 268 | } |