[−][src]Struct vega_lite_4::ViewConfig
Default properties for single view plots.
Fields
clip: Option<bool>
Whether the view should be clipped.
continuous_height: Option<f64>
The default height when the plot has a continuous y-field for x or latitude, or has arc marks.
Default value: 200
continuous_width: Option<f64>
The default width when the plot has a continuous field for x or longitude, or has arc marks.
Default value: 200
corner_radius: Option<CornerRadiusUnion>
cursor: Option<Cursor>
The mouse cursor used over the view. Any valid CSS cursor type can be used.
discrete_height: Option<DiscreteHeightUnion>
The default height when the plot has non arc marks and either a discrete y-field or no
y-field. The height can be either a number indicating a fixed height or an object in the
form of {step: number}
defining the height per discrete step.
Default value: a step size based on config.view.step
.
discrete_width: Option<DiscreteWidthUnion>
The default width when the plot has non-arc marks and either a discrete x-field or no
x-field. The width can be either a number indicating a fixed width or an object in the
form of {step: number}
defining the width per discrete step.
Default value: a step size based on config.view.step
.
fill: Option<Color>
The fill color.
Default value: undefined
fill_opacity: Option<Opacity>
height: Option<f64>
Default height
Deprecated: Since Vega-Lite 4.0. Please use continuousHeight and discreteHeight instead.
opacity: Option<CornerRadiusUnion>
The overall opacity (value between [0,1]).
Default value: 0.7
for non-aggregate plots with point
, tick
, circle
, or
square
marks or layered bar
charts and 1
otherwise.
step: Option<f64>
Default step size for x-/y- discrete fields.
stroke: RemovableValue<Color>
The stroke color.
Default value: "#ddd"
stroke_cap: Option<Cap>
stroke_dash: Option<StrokeDashUnion>
stroke_dash_offset: Option<CornerRadiusUnion>
stroke_join: Option<StrokeJoinUnion>
stroke_miter_limit: Option<CornerRadiusUnion>
stroke_opacity: Option<Opacity>
stroke_width: Option<FontSize>
width: Option<f64>
Default width
Deprecated: Since Vega-Lite 4.0. Please use continuousWidth and discreteWidth instead.
Trait Implementations
impl Clone for ViewConfig
[src]
pub fn clone(&self) -> ViewConfig
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ViewConfig
[src]
impl Default for ViewConfig
[src]
pub fn default() -> ViewConfig
[src]
impl<'de> Deserialize<'de> for ViewConfig
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for ViewConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for ViewConfig
[src]
impl Send for ViewConfig
[src]
impl Sync for ViewConfig
[src]
impl Unpin for ViewConfig
[src]
impl UnwindSafe for ViewConfig
[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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
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>,