pub struct PriceAxisOptions {
pub allow_label_overlap: bool,
pub show_study_values: bool,
pub study_value_color: Option<Color32>,
pub show_symbol_name: bool,
pub show_study_names: bool,
pub border_visible: bool,
pub border_color: Option<Color32>,
pub ticks_visible: bool,
pub edge_ticks_visible: bool,
pub hide_clipped_labels: bool,
}Expand description
Appearance of the price axis: its border, tick marks and which labels it shows. It applies to the main and series price axes; value tag settings also apply to study panes.
Tick spacing is a property of each scale, set through
PriceScaleOptions::tick_marks.
Fields§
§allow_label_overlap: boolAllow value tags to overlap instead of moving them to free vertical slots.
show_study_values: boolDisplay study values on price axes when study values are enabled.
study_value_color: Option<Color32>Study value tag colour; None follows each plot’s colour.
show_symbol_name: boolWrite the symbol before its last value tag on its price axis, and before the value tags of added series on theirs. Independent of the legend title. Default: false
show_study_names: boolWrite each study’s name before its value tags. Independent of the legend title. Default: false
border_visible: boolDraw a line between the plot and the axis. Default: false
border_color: Option<Color32>Colour of the border; None uses the theme’s border colour.
Default: None
ticks_visible: boolDraw a short horizontal tick beside each label. Default: false
edge_ticks_visible: boolLabel the prices at the top and bottom of the pane, in place of the tick marks next to them. Default: false
hide_clipped_labels: boolLeave out labels that the top or bottom of the pane would cut; with false they show clipped.
Default: true
Trait Implementations§
Source§impl Clone for PriceAxisOptions
impl Clone for PriceAxisOptions
Source§fn clone(&self) -> PriceAxisOptions
fn clone(&self) -> PriceAxisOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for PriceAxisOptions
Source§impl Debug for PriceAxisOptions
impl Debug for PriceAxisOptions
Source§impl Default for PriceAxisOptions
impl Default for PriceAxisOptions
Source§impl<'de> Deserialize<'de> for PriceAxisOptionswhere
PriceAxisOptions: Default,
impl<'de> Deserialize<'de> for PriceAxisOptionswhere
PriceAxisOptions: 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>,
Source§impl PartialEq for PriceAxisOptions
impl PartialEq for PriceAxisOptions
Source§impl Serialize for PriceAxisOptions
impl Serialize for PriceAxisOptions
impl StructuralPartialEq for PriceAxisOptions
Auto Trait Implementations§
impl Freeze for PriceAxisOptions
impl RefUnwindSafe for PriceAxisOptions
impl Send for PriceAxisOptions
impl Sync for PriceAxisOptions
impl Unpin for PriceAxisOptions
impl UnsafeUnpin for PriceAxisOptions
impl UnwindSafe for PriceAxisOptions
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