Enum vega_lite_4::ScaleBins
source · pub enum ScaleBins {
DoubleArray(Vec<f64>),
ScaleBinParams(ScaleBinParams),
}
Expand description
Bin boundaries can be provided to scales as either an explicit array of bin boundaries or
as a bin specification object. The legal values are: - An array
literal of bin boundary values. For example, [0, 5, 10, 15, 20]
. The array must include
both starting and ending boundaries. The previous example uses five values to indicate a
total of four bin intervals: [0-5), [5-10), [10-15), [15-20]. Array literals may include
signal references as elements. - A bin specification
object that indicates the bin
step size, and optionally the start and stop boundaries. - An array of bin
boundaries over the scale domain. If provided, axes and legends will use the bin
boundaries to inform the choice of tick marks and text labels.
Variants§
DoubleArray(Vec<f64>)
ScaleBinParams(ScaleBinParams)
Trait Implementations§
source§impl<'de> Deserialize<'de> for ScaleBins
impl<'de> Deserialize<'de> for ScaleBins
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 From<ScaleBinParams> for ScaleBins
impl From<ScaleBinParams> for ScaleBins
source§fn from(original: ScaleBinParams) -> ScaleBins
fn from(original: ScaleBinParams) -> ScaleBins
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for ScaleBins
impl Send for ScaleBins
impl Sync for ScaleBins
impl Unpin for ScaleBins
impl UnwindSafe for ScaleBins
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