pub struct ChartTypeStyles {
pub line: LinePlotStyle,
pub step_line: LinePlotStyle,
pub line_with_markers: LinePlotStyle,
pub marker_radius: f32,
pub area: AreaStyle,
pub baseline: BaselineStyle,
pub hlc_area: HlcAreaStyle,
pub candles: CandlesStyle,
pub bars: BarsStyle,
pub kagi: KagiStyle,
pub crosshair_marker_radius: f32,
pub last_price_animation: LastPriceAnimation,
}Expand description
Styles of the candles, bars, line, step, marker, area, HLC area, baseline and Kagi chart types. Defaults use the design-token palette and remain independent of candle colours.
Fields§
§line: LinePlotStyleLine chart.
step_line: LinePlotStyleStep line chart.
line_with_markers: LinePlotStyleLine with markers chart.
marker_radius: f32Marker radius in logical points. Non-positive or non-finite radii hide markers.
area: AreaStyleArea chart.
baseline: BaselineStyleBaseline chart.
hlc_area: HlcAreaStyleHLC area chart.
candles: CandlesStyleCandles chart.
bars: BarsStyleBars chart.
kagi: KagiStyleKagi chart.
crosshair_marker_radius: f32Radius in logical points of the marker drawn on the line at the crosshair’s bar in the Line, Step line, Line with markers, Area and Baseline charts. Non-positive or non-finite radii hide it, the default.
last_price_animation: LastPriceAnimationPulse at the last price of the line-based charts.
Trait Implementations§
Source§impl Clone for ChartTypeStyles
impl Clone for ChartTypeStyles
Source§fn clone(&self) -> ChartTypeStyles
fn clone(&self) -> ChartTypeStyles
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 ChartTypeStyles
impl Debug for ChartTypeStyles
Source§impl Default for ChartTypeStyles
impl Default for ChartTypeStyles
Source§impl<'de> Deserialize<'de> for ChartTypeStyleswhere
ChartTypeStyles: Default,
impl<'de> Deserialize<'de> for ChartTypeStyleswhere
ChartTypeStyles: 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 ChartTypeStyles
impl PartialEq for ChartTypeStyles
Source§impl Serialize for ChartTypeStyles
impl Serialize for ChartTypeStyles
impl StructuralPartialEq for ChartTypeStyles
Auto Trait Implementations§
impl Freeze for ChartTypeStyles
impl RefUnwindSafe for ChartTypeStyles
impl Send for ChartTypeStyles
impl Sync for ChartTypeStyles
impl Unpin for ChartTypeStyles
impl UnsafeUnpin for ChartTypeStyles
impl UnwindSafe for ChartTypeStyles
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