Struct vega_lite::TitleParams

source ·
pub struct TitleParams {
    pub anchor: Option<Anchor>,
    pub offset: Option<f64>,
    pub orient: Option<TitleOrient>,
    pub style: Option<Style>,
    pub text: String,
}

Fields§

§anchor: Option<Anchor>

The anchor position for placing the title. One of "start", "middle", or "end". For example, with an orientation of top these anchor positions map to a left-, center-, or right-aligned title.

Default value: "middle" for single and layered views. "start" for other composite views.

Note: For now, anchor is only customizable only for single and layered views. For other composite views, anchor is always "start".

§offset: Option<f64>

The orthogonal offset in pixels by which to displace the title from its position along the edge of the chart.

§orient: Option<TitleOrient>

The orientation of the title relative to the chart. One of "top" (the default), "bottom", "left", or "right".

§style: Option<Style>

A mark style property to apply to the title text mark.

Default value: "group-title".

§text: String

The title text.

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.