pub struct SeriesStyle {
pub color: Rgba,
pub width: f32,
pub show_last_value: bool,
}Expand description
Per-series drawing options.
Fields§
§color: RgbaLine, area and bar colour. Candles, OHLC and volume use the theme’s up and down colours.
width: f32Line width in backend units (pixels for GPUI).
show_last_value: boolShow the newest value as a tag on the y axis.
Implementations§
Source§impl SeriesStyle
impl SeriesStyle
Sourcepub fn new(color: Rgba) -> SeriesStyle
pub fn new(color: Rgba) -> SeriesStyle
A one-unit line in color, without a last-value tag.
Sourcepub fn with_last_value(self) -> SeriesStyle
pub fn with_last_value(self) -> SeriesStyle
The same style with a last-value tag.
Sourcepub fn with_width(self, width: f32) -> SeriesStyle
pub fn with_width(self, width: f32) -> SeriesStyle
The same style with a different line width.
Trait Implementations§
Source§impl Clone for SeriesStyle
impl Clone for SeriesStyle
impl Copy for SeriesStyle
Source§impl Debug for SeriesStyle
impl Debug for SeriesStyle
Source§impl PartialEq for SeriesStyle
impl PartialEq for SeriesStyle
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 SeriesStyle
impl Sync for SeriesStyle
impl Unpin for SeriesStyle
impl UnsafeUnpin for SeriesStyle
impl UnwindSafe for SeriesStyle
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> 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