MCPcopy Create free account
hub / github.com/donkeyteethUX/iced_plot / Series

Class Series

src/series.rs:289–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287/// lines, or both. The same series can contain any number of points.
288#[derive(Debug, Clone)]
289pub struct Series {
290 /// Unique identifier for the series.
291 pub id: ShapeId,
292
293 /// Series point positions.
294 pub positions: Vec<[f64; 2]>,
295
296 /// How this series interprets or converts point positions before drawing.
297 pub transform: PositionTransform,
298
299 /// Optional per-point colors. Must match the length of `positions` if set.
300 pub point_colors: Option<Vec<Color>>,
301
302 /// Optional label for the entire series.
303 pub label: Option<String>,
304
305 /// Color of the entire series.
306 ///
307 /// Overridden by per-point colors if they are set.
308 pub color: Color,
309
310 /// Optional marker style for the series. If none, no markers are drawn.
311 pub marker_style: Option<MarkerStyle>,
312
313 /// Line style for connecting markers. If None, no line is drawn.
314 pub line_style: Option<LineStyle>,
315
316 /// Can be hovered or picked. Defaults to `true`.
317 pub pickable: bool,
318}
319
320impl Series {
321 /// Create a new series with both markers and lines.

Callers 1

resolve_fill_endpointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected