Struct vega_lite::ViewConfig

source ·
pub struct ViewConfig {
    pub clip: Option<bool>,
    pub fill: Option<String>,
    pub fill_opacity: Option<f64>,
    pub height: Option<f64>,
    pub stroke: Option<String>,
    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>,
}
Expand description

Default properties for single view plots.

Fields§

§clip: Option<bool>

Whether the view should be clipped.

§fill: Option<String>

The fill color.

Default value: (none)

§fill_opacity: Option<f64>

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

Default value: (none)

§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

§stroke: Option<String>

The stroke color.

Default value: (none)

§stroke_dash: Option<Vec<f64>>

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

Default value: (none)

§stroke_dash_offset: Option<f64>

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

Default value: (none)

§stroke_join: Option<StrokeJoin>

The stroke line join method. One of miter (default), round or bevel.

Default value: ‘miter’

§stroke_miter_limit: Option<f64>

The stroke line join method. One of miter (default), round or bevel.

Default value: ‘miter’

§stroke_opacity: Option<f64>

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

Default value: (none)

§stroke_width: Option<f64>

The stroke width, in pixels.

Default value: (none)

§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§

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.