[][src]Struct vega_lite_3::TitleParams

pub struct TitleParams {
    pub align: Option<Align>,
    pub anchor: Option<TitleAnchor>,
    pub angle: Option<f64>,
    pub baseline: Option<TextBaseline>,
    pub color: Option<String>,
    pub dx: Option<f64>,
    pub dy: Option<f64>,
    pub font: Option<String>,
    pub font_size: Option<f64>,
    pub font_style: Option<String>,
    pub font_weight: Option<FontWeight>,
    pub frame: Option<TitleFrame>,
    pub limit: Option<f64>,
    pub offset: Option<f64>,
    pub orient: Option<TitleOrient>,
    pub style: Option<Style>,
    pub text: Option<String>,
    pub zindex: Option<f64>,
}

Fields

align: Option<Align>anchor: Option<TitleAnchor>

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".

angle: Option<f64>

Angle in degrees of title text.

baseline: Option<TextBaseline>

Vertical text baseline for title text. One of "top", "middle", "bottom", or "alphabetic".

color: Option<String>

Text color for title text.

dx: Option<f64>

Delta offset for title text x-coordinate.

dy: Option<f64>

Delta offset for title text y-coordinate.

font: Option<String>

Font name for title text.

font_size: Option<f64>

Font size in pixels for title text.

Default value: 10.

font_style: Option<String>

Font style for title text.

font_weight: Option<FontWeight>

Font weight for title text. This can be either a string (e.g "bold", "normal") or a number (100, 200, 300, ..., 900 where "normal" = 400 and "bold" = 700).

frame: Option<TitleFrame>

The reference frame for the anchor position, one of "bounds" (to anchor relative to the full bounding box) or "group" (to anchor relative to the group width or height).

limit: Option<f64>

The maximum allowed length in pixels of legend labels.

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>

Default title orientation ("top", "bottom", "left", or "right")

style: Option<Style>

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

Default value: "group-title".

text: Option<String>

The title text.

zindex: Option<f64>

The integer z-index indicating the layering of the title group relative to other axis, mark and legend groups.

Default value: 0.

Trait Implementations

impl Clone for TitleParams[src]

impl Debug for TitleParams[src]

impl Default for TitleParams[src]

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

impl From<TitleParams> for Title[src]

impl Serialize for TitleParams[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.