Create a new line-only series.
(positions: Vec<[f64; 2]>, line_style: LineStyle)
| 335 | |
| 336 | /// Create a new line-only series. |
| 337 | pub fn line_only(positions: Vec<[f64; 2]>, line_style: LineStyle) -> Self { |
| 338 | Self { |
| 339 | id: ShapeId::new(), |
| 340 | positions, |
| 341 | transform: PositionTransform::default(), |
| 342 | point_colors: None, |
| 343 | label: None, |
| 344 | color: Color::from_rgb(0.3, 0.3, 0.9), |
| 345 | marker_style: None, |
| 346 | line_style: Some(line_style), |
| 347 | pickable: true, |
| 348 | } |
| 349 | } |
| 350 | |
| 351 | /// Create a new marker-only series. |
| 352 | pub fn markers_only(positions: Vec<[f64; 2]>, marker_style: MarkerStyle) -> Self { |