ViewConfig

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

Source§

impl Debug for ViewConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ViewConfig

Source§

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 Serialize for ViewConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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