pub struct ChartSeries {
pub name: SharedString,
pub points: Vec<ChartPoint>,
pub color: Option<Hsla>,
pub fill_color: Option<Hsla>,
pub stroke_color: Option<Hsla>,
pub stroke_width: Option<Pixels>,
pub line_style: Option<ChartLineStyle>,
pub dash_pattern: Option<Vec<Pixels>>,
pub smooth: Option<bool>,
}Fields§
§name: SharedString§points: Vec<ChartPoint>§color: Option<Hsla>§fill_color: Option<Hsla>§stroke_color: Option<Hsla>§stroke_width: Option<Pixels>§line_style: Option<ChartLineStyle>§dash_pattern: Option<Vec<Pixels>>§smooth: Option<bool>Implementations§
Source§impl ChartSeries
impl ChartSeries
pub fn new( name: impl Into<SharedString>, points: impl IntoIterator<Item = ChartPoint>, ) -> Self
pub fn color(self, color: Hsla) -> Self
pub fn fill_color(self, color: Hsla) -> Self
pub fn stroke_color(self, color: Hsla) -> Self
pub fn stroke_width(self, width: impl Into<Pixels>) -> Self
pub fn line_style(self, style: ChartLineStyle) -> Self
pub fn dashed(self) -> Self
pub fn dotted(self) -> Self
pub fn solid(self) -> Self
pub fn dash_pattern( self, pattern: impl IntoIterator<Item = impl Into<Pixels>>, ) -> Self
pub fn smooth(self, enabled: bool) -> Self
pub fn resolved_fill_color(&self, fallback: Hsla) -> Hsla
pub fn resolved_stroke_color(&self, fallback: Hsla) -> Hsla
pub fn finite_points(&self) -> impl Iterator<Item = &ChartPoint>
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for ChartSeries
impl Clone for ChartSeries
Source§fn clone(&self) -> ChartSeries
fn clone(&self) -> ChartSeries
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ChartSeries
impl RefUnwindSafe for ChartSeries
impl Send for ChartSeries
impl Sync for ChartSeries
impl Unpin for ChartSeries
impl UnsafeUnpin for ChartSeries
impl UnwindSafe for ChartSeries
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more