pub struct Dataset {
pub name: String,
pub data: Vec<(f64, f64)>,
pub color: Color,
pub marker: Marker,
pub graph_type: GraphType,
pub up_color: Option<Color>,
pub down_color: Option<Color>,
}Expand description
Dataset for one chart series.
Fields§
§name: StringDataset label shown in legend.
data: Vec<(f64, f64)>Data points as (x, y) pairs.
color: ColorSeries color.
marker: MarkerMarker used for points.
graph_type: GraphTypeRendering mode for this dataset.
up_color: Option<Color>Upward segment color override.
down_color: Option<Color>Downward (or flat) segment color override.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Dataset
impl RefUnwindSafe for Dataset
impl Send for Dataset
impl Sync for Dataset
impl Unpin for Dataset
impl UnsafeUnpin for Dataset
impl UnwindSafe for Dataset
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more