pub struct BarColors {
pub color: Option<Color32>,
pub border: Option<Color32>,
pub wick: Option<Color32>,
pub top_line: Option<Color32>,
pub top_fill: Option<Color32>,
pub bottom_line: Option<Color32>,
pub bottom_fill: Option<Color32>,
pub top_fill_at_base: Option<Color32>,
pub bottom_fill_at_base: Option<Color32>,
}Expand description
Colours of one bar that replace the colours of its series for that bar, in
Bar::colors. A colour left None keeps the series’ colour, and each chart type reads the
colours that apply to it.
Fields§
§color: Option<Color32>The body of a candle; an OHLC bar, a column or a line’s marker; or the line from this bar to the next on line, step line, area and HLC area charts.
border: Option<Color32>The border of a candle’s body.
wick: Option<Color32>The wick of a candle.
top_line: Option<Color32>A baseline’s line above its base value, from this bar to the next.
top_fill: Option<Color32>A baseline’s fill at the pane’s high-price edge, from this bar to the next.
bottom_line: Option<Color32>A baseline’s line below its base value, from this bar to the next.
bottom_fill: Option<Color32>A baseline’s fill at the pane’s low-price edge, from this bar to the next.
top_fill_at_base: Option<Color32>A baseline’s fill at the base on its higher-price side, from this bar to the next.
Falls back to the series’ base endpoint, or the resolved top_fill for a flat fill.
bottom_fill_at_base: Option<Color32>A baseline’s fill at the base on its lower-price side, from this bar to the next.
Falls back to the series’ base endpoint, or the resolved bottom_fill for a flat fill.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BarColors
impl<'de> Deserialize<'de> for BarColors
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>,
impl StructuralPartialEq for BarColors
Auto Trait Implementations§
impl Freeze for BarColors
impl RefUnwindSafe for BarColors
impl Send for BarColors
impl Sync for BarColors
impl Unpin for BarColors
impl UnsafeUnpin for BarColors
impl UnwindSafe for BarColors
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
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> ⓘ
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> ⓘ
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