pub struct SeriesStyle {
pub name: String,
pub color: Option<Color32>,
pub width: Option<f32>,
pub line_style: Option<LineStyle>,
pub marker: Option<Marker>,
pub marker_size: Option<f32>,
pub fill_opacity: Option<f32>,
pub smoothing: Option<Smoothing>,
pub y_axis: Option<YAxis>,
pub direction_arrow: Option<bool>,
}Expand description
Overrides for one series, matched by name.
Fields§
§name: StringThe series name this applies to.
color: Option<Color32>Stroke and fill color.
width: Option<f32>Line width in points.
line_style: Option<LineStyle>Solid, dashed, or dotted.
marker: Option<Marker>Marker shape (scatter, or markers on line vertices).
marker_size: Option<f32>Marker radius in points.
fill_opacity: Option<f32>Opacity of area and bar fills, 0–1.
smoothing: Option<Smoothing>Straight, spline, or monotone segments (lines and areas).
y_axis: Option<YAxis>Move the series to the left or the right y axis.
direction_arrow: Option<bool>Show the direction arrow for this series; PlotConfig::direction when None.
Implementations§
Trait Implementations§
Source§impl Clone for SeriesStyle
impl Clone for SeriesStyle
Source§impl Debug for SeriesStyle
impl Debug for SeriesStyle
Source§impl Default for SeriesStyle
impl Default for SeriesStyle
Source§impl<'de> Deserialize<'de> for SeriesStyle
Available on crate feature serde only.
impl<'de> Deserialize<'de> for SeriesStyle
Available on crate feature
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SeriesStyle
impl PartialEq for SeriesStyle
Source§impl Serialize for SeriesStyle
Available on crate feature serde only.
impl Serialize for SeriesStyle
Available on crate feature
serde only.impl StructuralPartialEq for SeriesStyle
Auto Trait Implementations§
impl Forget for SeriesStyle
impl Freeze for SeriesStyle
impl Move for SeriesStyle
impl RefUnwindSafe for SeriesStyle
impl Send for SeriesStylewhere
RawVecInner: Send,
impl Sync for SeriesStylewhere
RawVecInner: Sync,
impl Unpin for SeriesStyle
impl UnsafeUnpin for SeriesStyle
impl UnwindSafe for SeriesStylewhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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