pub struct VolumeBubblesConfig {Show 13 fields
pub min_diameter: f32,
pub max_diameter: f32,
pub opacity: u8,
pub buy_color: Color32,
pub sell_color: Color32,
pub neutral_color: Color32,
pub color_by: BubbleColor,
pub scaling_mode: BubbleScalingMode,
pub clamp_std_devs: f64,
pub show_border: bool,
pub border_color: Color32,
pub min_size_filter: Option<f64>,
pub grouping: BubbleGrouping,
}Expand description
Configuration for volume bubbles overlay. Serializable, so a host can keep it with its chart settings; fields missing from older documents take their defaults.
Fields§
§min_diameter: f32Minimum bubble diameter, reduced in crowded automatic views.
max_diameter: f32Maximum bubble diameter, limited by screen density with automatic grouping.
opacity: u8Opacity for bubbles
buy_color: Color32Color for buy trades
sell_color: Color32Color for sell trades
neutral_color: Color32Color for bubbles without a side
color_by: BubbleColorWhat the colour of a bubble shows
scaling_mode: BubbleScalingModeSize scaling mode
clamp_std_devs: f64Volumes more than this many standard deviations above the mean of the visible bubbles
draw at the maximum diameter, so one large print does not shrink the rest. Infinity
turns the clamp off and is saved as null in JSON.
show_border: boolShow border around bubbles, fainter in crowded automatic views.
border_color: Color32Border color
min_size_filter: Option<f64>Bubbles with less volume are neither drawn nor scaled over
grouping: BubbleGroupingWhich trades share a bubble.
Trait Implementations§
Source§impl Clone for VolumeBubblesConfig
impl Clone for VolumeBubblesConfig
Source§fn clone(&self) -> VolumeBubblesConfig
fn clone(&self) -> VolumeBubblesConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VolumeBubblesConfig
impl Debug for VolumeBubblesConfig
Source§impl Default for VolumeBubblesConfig
impl Default for VolumeBubblesConfig
Source§impl<'de> Deserialize<'de> for VolumeBubblesConfigwhere
VolumeBubblesConfig: Default,
impl<'de> Deserialize<'de> for VolumeBubblesConfigwhere
VolumeBubblesConfig: 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 VolumeBubblesConfig
impl PartialEq for VolumeBubblesConfig
Source§impl Serialize for VolumeBubblesConfig
impl Serialize for VolumeBubblesConfig
impl StructuralPartialEq for VolumeBubblesConfig
Auto Trait Implementations§
impl Freeze for VolumeBubblesConfig
impl RefUnwindSafe for VolumeBubblesConfig
impl Send for VolumeBubblesConfig
impl Sync for VolumeBubblesConfig
impl Unpin for VolumeBubblesConfig
impl UnsafeUnpin for VolumeBubblesConfig
impl UnwindSafe for VolumeBubblesConfig
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