[][src]Struct vega_lite_3::ViewConfig

pub struct ViewConfig {
    pub clip: Option<bool>,
    pub corner_radius: Option<f64>,
    pub fill: Option<String>,
    pub fill_opacity: Option<f64>,
    pub height: Option<f64>,
    pub opacity: Option<f64>,
    pub stroke: RemovableValue<String>,
    pub stroke_cap: Option<StrokeCap>,
    pub stroke_dash: Option<Vec<f64>>,
    pub stroke_dash_offset: Option<f64>,
    pub stroke_join: Option<StrokeJoin>,
    pub stroke_miter_limit: Option<f64>,
    pub stroke_opacity: Option<f64>,
    pub stroke_width: Option<f64>,
    pub width: Option<f64>,
}

Default properties for single view plots.

Fields

clip: Option<bool>

Whether the view should be clipped.

corner_radius: Option<f64>

The radius in pixels of rounded rectangle corners.

Default value: 0

fill: Option<String>

The fill color.

Default value: undefined

fill_opacity: Option<f64>

The fill opacity (value between [0,1]).

Default value: 1

height: Option<f64>

The default height of the single plot or each plot in a trellis plot when the visualization has a continuous (non-ordinal) y-scale with rangeStep = null.

Default value: 200

opacity: Option<f64>

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.

stroke: RemovableValue<String>

The stroke color.

Default value: "#ddd"

stroke_cap: Option<StrokeCap>

The stroke cap for line ending style. One of "butt", "round", or "square".

Default value: "square"

stroke_dash: Option<Vec<f64>>

An array of alternating stroke, space lengths for creating dashed or dotted lines.

stroke_dash_offset: Option<f64>

The offset (in pixels) into which to begin drawing with the stroke dash array.

stroke_join: Option<StrokeJoin>

The stroke line join method. One of "miter", "round" or "bevel".

Default value: "miter"

stroke_miter_limit: Option<f64>

The miter limit at which to bevel a line join.

stroke_opacity: Option<f64>

The stroke opacity (value between [0,1]).

Default value: 1

stroke_width: Option<f64>

The stroke width, in pixels.

width: Option<f64>

The default width of the single plot or each plot in a trellis plot when the visualization has a continuous (non-ordinal) x-scale or ordinal x-scale with rangeStep = null.

Default value: 200

Trait Implementations

impl Clone for ViewConfig[src]

impl Debug for ViewConfig[src]

impl Default for ViewConfig[src]

impl<'de> Deserialize<'de> for ViewConfig[src]

impl Serialize for ViewConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.