Struct vega_lite_4::BoxPlotConfigBuilder
source · pub struct BoxPlotConfigBuilder { /* private fields */ }
Expand description
Builder for BoxPlotConfig
.
Implementations§
source§impl BoxPlotConfigBuilder
impl BoxPlotConfigBuilder
pub fn box_plot_config_box<VALUE: Into<DefBox>>( &mut self, value: VALUE ) -> &mut Self
sourcepub fn extent<VALUE: Into<BoxplotExtent>>(&mut self, value: VALUE) -> &mut Self
pub fn extent<VALUE: Into<BoxplotExtent>>(&mut self, value: VALUE) -> &mut Self
The extent of the whiskers. Available options include: - "min-max"
: min and max are the
lower and upper whiskers respectively. - A number representing multiple of the
interquartile range. This number will be multiplied by the IQR to determine whisker
boundary, which spans from the smallest data to the largest data within the range [Q1 -
k * IQR, Q3 + k * IQR] where Q1 and Q3 are the first and third quartiles while IQR
is the interquartile range (Q3-Q1).
Default value: 1.5
.
pub fn median<VALUE: Into<DefBox>>(&mut self, value: VALUE) -> &mut Self
pub fn outliers<VALUE: Into<DefBox>>(&mut self, value: VALUE) -> &mut Self
pub fn rule<VALUE: Into<DefBox>>(&mut self, value: VALUE) -> &mut Self
sourcepub fn size<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn size<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
Size of the box and median tick of a box plot
pub fn ticks<VALUE: Into<DefBox>>(&mut self, value: VALUE) -> &mut Self
sourcepub fn build(&self) -> Result<BoxPlotConfig, BoxPlotConfigBuilderError>
pub fn build(&self) -> Result<BoxPlotConfig, BoxPlotConfigBuilderError>
Trait Implementations§
source§impl Clone for BoxPlotConfigBuilder
impl Clone for BoxPlotConfigBuilder
source§fn clone(&self) -> BoxPlotConfigBuilder
fn clone(&self) -> BoxPlotConfigBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for BoxPlotConfigBuilder
impl Send for BoxPlotConfigBuilder
impl Sync for BoxPlotConfigBuilder
impl Unpin for BoxPlotConfigBuilder
impl UnwindSafe for BoxPlotConfigBuilder
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