pub struct Series {
pub name: String,
pub data: Vec<(f64, f64)>,
pub chart_type: ChartType,
pub color: Color,
pub line_style: LineStyle,
pub marker: Marker,
pub fill_color: Option<Color>,
}Expand description
A data series
Fields§
§name: StringSeries name (for legend)
data: Vec<(f64, f64)>Data points (x, y)
chart_type: ChartTypeChart type for this series
color: ColorLine color
line_style: LineStyleLine style
marker: MarkerMarker style
fill_color: Option<Color>Fill color (for area charts)
Implementations§
Source§impl Series
impl Series
Sourcepub fn chart_type(self, chart_type: ChartType) -> Self
pub fn chart_type(self, chart_type: ChartType) -> Self
Set chart type
Sourcepub fn line_style(self, style: LineStyle) -> Self
pub fn line_style(self, style: LineStyle) -> Self
Set line style
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Series
impl RefUnwindSafe for Series
impl Send for Series
impl Sync for Series
impl Unpin for Series
impl UnwindSafe for Series
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