[−][src]Struct vega_lite_4::BinParamsBuilder
Builder for BinParams
.
Implementations
impl BinParamsBuilder
[src]
pub fn anchor<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
[src]
A value in the binned domain at which to anchor the bins, shifting the bin boundaries if necessary to ensure that a boundary aligns with the anchor value.
Default value: the minimum bin extent value
pub fn base<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
[src]
The number base to use for automatic bin determination (default is base 10).
Default value: 10
pub fn binned<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
[src]
When set to true
, Vega-Lite treats the input data as already binned.
pub fn divide<VALUE: Into<Vec<f64>>>(&mut self, value: VALUE) -> &mut Self
[src]
Scale factors indicating allowable subdivisions. The default value is [5, 2], which indicates that for base 10 numbers (the default base), the method may consider dividing bin sizes by 5 and/or 2. For example, for an initial step size of 10, the method can check if bin sizes of 2 (= 10/5), 5 (= 10/2), or 1 (= 10/(5*2)) might also satisfy the given constraints.
Default value: [5, 2]
pub fn extent<VALUE: Into<BinExtent>>(&mut self, value: VALUE) -> &mut Self
[src]
A two-element ([min, max]
) array indicating the range of desired bin values.
pub fn maxbins<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
[src]
Maximum number of bins.
Default value: 6
for row
, column
and shape
channels; 10
for other channels
pub fn minstep<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
[src]
A minimum allowable step size (particularly useful for integer values).
pub fn nice<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
[src]
If true, attempts to make the bin boundaries use human-friendly boundaries, such as multiples of ten.
Default value: true
pub fn step<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
[src]
An exact step size to use between bins.
Note: If provided, options such as maxbins will be ignored.
pub fn steps<VALUE: Into<Vec<f64>>>(&mut self, value: VALUE) -> &mut Self
[src]
An array of allowable step sizes to choose from.
pub fn build(&self) -> Result<BinParams, String>
[src]
Trait Implementations
impl Clone for BinParamsBuilder
[src]
pub fn clone(&self) -> BinParamsBuilder
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for BinParamsBuilder
[src]
pub fn default() -> BinParamsBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for BinParamsBuilder
[src]
impl Send for BinParamsBuilder
[src]
impl Sync for BinParamsBuilder
[src]
impl Unpin for BinParamsBuilder
[src]
impl UnwindSafe for BinParamsBuilder
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,