[][src]Struct vega_lite_3::TitleParamsBuilder

pub struct TitleParamsBuilder { /* fields omitted */ }

Builder for TitleParams.

Methods

impl TitleParamsBuilder[src]

pub fn align<VALUE: Into<Align>>(&mut self, value: VALUE) -> &mut Self[src]

pub fn anchor<VALUE: Into<TitleAnchor>>(&mut self, value: VALUE) -> &mut Self[src]

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

pub fn angle<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self[src]

Angle in degrees of title text.

pub fn baseline<VALUE: Into<TextBaseline>>(&mut self, value: VALUE) -> &mut Self[src]

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

pub fn color<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self[src]

Text color for title text.

pub fn dx<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self[src]

Delta offset for title text x-coordinate.

pub fn dy<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self[src]

Delta offset for title text y-coordinate.

pub fn font<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self[src]

Font name for title text.

pub fn font_size<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self[src]

Font size in pixels for title text.

Default value: 10.

pub fn font_style<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self[src]

Font style for title text.

pub fn font_weight<VALUE: Into<FontWeight>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

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

pub fn frame<VALUE: Into<TitleFrame>>(&mut self, value: VALUE) -> &mut Self[src]

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

pub fn limit<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self[src]

The maximum allowed length in pixels of legend labels.

pub fn offset<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self[src]

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

pub fn orient<VALUE: Into<TitleOrient>>(&mut self, value: VALUE) -> &mut Self[src]

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

pub fn style<VALUE: Into<Style>>(&mut self, value: VALUE) -> &mut Self[src]

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

Default value: "group-title".

pub fn text<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self[src]

The title text.

pub fn zindex<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self[src]

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

Default value: 0.

pub fn build(&self) -> Result<TitleParams, String>[src]

Builds a new TitleParams.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for TitleParamsBuilder[src]

impl Default for TitleParamsBuilder[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> 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.