| 222 | /// Errors that can occur when constructing or adding a series. |
| 223 | #[derive(Debug, Clone, PartialEq)] |
| 224 | pub enum SeriesError { |
| 225 | /// No points provided to the series. |
| 226 | Empty, |
| 227 | /// Series has neither markers nor lines enabled. |
| 228 | NoMarkersAndNoLines, |
| 229 | /// A series with the given ID does not exist. |
| 230 | NotFound(ShapeId), |
| 231 | /// Axis limits are not properly set (min >= max). |
| 232 | InvalidAxisLimits, |
| 233 | /// Invalid AxisScale configuration (e.g. log scale with non-positive base). |
| 234 | InvalidAxisScale, |
| 235 | /// Per-point colors length does not match positions length. |
| 236 | InvalidPointColorsLength, |
| 237 | /// Fill begin/end must reference different shapes. |
| 238 | InvalidFillEndpoints, |
| 239 | /// Fill endpoint references a shape that does not exist in the widget. |
| 240 | FillEndpointNotFound(ShapeId), |
| 241 | } |
| 242 | |
| 243 | /// Unique identifier for a shape in the plot. |
| 244 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected