pub struct BaselineStyle {
pub above: LinePlotStyle,
pub below: LinePlotStyle,
pub marker_radius: f32,
pub above_fill: Color32,
pub below_fill: Color32,
pub above_fill_at_base: Option<Color32>,
pub below_fill_at_base: Option<Color32>,
}Expand description
The Baseline chart’s independent colours and vertical fills on either side of its base.
Fields§
§above: LinePlotStyleLine above the base in price units, also on an inverted scale.
below: LinePlotStyleLine below the base in price units.
marker_radius: f32Point marker radius in logical points. Non-positive or non-finite radii hide markers, the default. Each marker takes its point’s line colour on its side of the base.
above_fill: Color32Fill at the pane’s high-price edge, including opacity, also on an inverted scale.
below_fill: Color32Fill at the pane’s low-price edge, including opacity.
above_fill_at_base: Option<Color32>Fill at the base on its higher-price side. None uses above_fill for a flat fill.
The gradient interpolates in screen space between the pane edge and the base.
below_fill_at_base: Option<Color32>Fill at the base on its lower-price side. None uses below_fill for a flat fill.
Trait Implementations§
Source§impl Clone for BaselineStyle
impl Clone for BaselineStyle
Source§fn clone(&self) -> BaselineStyle
fn clone(&self) -> BaselineStyle
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 moreSource§impl Debug for BaselineStyle
impl Debug for BaselineStyle
Source§impl Default for BaselineStyle
impl Default for BaselineStyle
Source§impl<'de> Deserialize<'de> for BaselineStylewhere
BaselineStyle: Default,
impl<'de> Deserialize<'de> for BaselineStylewhere
BaselineStyle: Default,
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 BaselineStyle
impl PartialEq for BaselineStyle
Source§impl Serialize for BaselineStyle
impl Serialize for BaselineStyle
impl StructuralPartialEq for BaselineStyle
Auto Trait Implementations§
impl Freeze for BaselineStyle
impl RefUnwindSafe for BaselineStyle
impl Send for BaselineStyle
impl Sync for BaselineStyle
impl Unpin for BaselineStyle
impl UnsafeUnpin for BaselineStyle
impl UnwindSafe for BaselineStyle
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