[][src]Struct vega_lite_3::BaseTitleConfig

pub struct BaseTitleConfig {
    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>,
}

Title configuration, which determines default properties for all titles. For a full list of title configuration options, please see the corresponding section of the title documentation.

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.

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

Trait Implementations

impl Clone for BaseTitleConfig[src]

impl Debug for BaseTitleConfig[src]

impl Default for BaseTitleConfig[src]

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

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