pub struct TitleParams {
Show 28 fields pub align: Option<Align>, pub anchor: Option<TitleAnchorEnum>, pub angle: Option<CornerRadiusUnion>, pub aria: Option<Aria>, pub baseline: Option<Baseline>, pub color: Option<Box<Color>>, pub dx: Option<CornerRadiusUnion>, pub dy: Option<CornerRadiusUnion>, pub font: Option<Box<Color>>, pub font_size: Option<FontSize>, pub font_style: Option<Box<Color>>, pub font_weight: Option<FontWeightUnion>, pub frame: Option<Box<Color>>, pub limit: Option<FontSize>, pub line_height: Option<CornerRadiusUnion>, pub offset: Option<CornerRadiusUnion>, pub orient: Option<TitleParamsOrient>, pub style: Option<LegendText>, pub subtitle: Option<LegendText>, pub subtitle_color: Option<Box<Color>>, pub subtitle_font: Option<Box<Color>>, pub subtitle_font_size: Option<FontSize>, pub subtitle_font_style: Option<Box<Color>>, pub subtitle_font_weight: Option<FontWeightUnion>, pub subtitle_line_height: Option<CornerRadiusUnion>, pub subtitle_padding: Option<CornerRadiusUnion>, pub text: Option<ConditionalValueDefTextExprRefText>, pub zindex: Option<f64>,
}

Fields§

§align: Option<Align>

Horizontal text alignment for title text. One of "left", "center", or "right".

§anchor: Option<TitleAnchorEnum>

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<CornerRadiusUnion>§aria: Option<Aria>§baseline: Option<Baseline>

Vertical text baseline for title and subtitle text. One of "alphabetic" (default), "top", "middle", "bottom", "line-top", or "line-bottom". The "line-top" and "line-bottom" values operate similarly to "top" and "bottom", but are calculated relative to the lineHeight rather than fontSize alone.

§color: Option<Box<Color>>§dx: Option<CornerRadiusUnion>§dy: Option<CornerRadiusUnion>§font: Option<Box<Color>>§font_size: Option<FontSize>§font_style: Option<Box<Color>>§font_weight: Option<FontWeightUnion>§frame: Option<Box<Color>>§limit: Option<FontSize>§line_height: Option<CornerRadiusUnion>§offset: Option<CornerRadiusUnion>§orient: Option<TitleParamsOrient>§style: Option<LegendText>

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

Default value: "group-title".

§subtitle: Option<LegendText>

The subtitle Text.

§subtitle_color: Option<Box<Color>>§subtitle_font: Option<Box<Color>>§subtitle_font_size: Option<FontSize>§subtitle_font_style: Option<Box<Color>>§subtitle_font_weight: Option<FontWeightUnion>§subtitle_line_height: Option<CornerRadiusUnion>§subtitle_padding: Option<CornerRadiusUnion>§text: Option<ConditionalValueDefTextExprRefText>

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§

source§

impl Clone for TitleParams

source§

fn clone(&self) -> TitleParams

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for TitleParams

source§

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

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

impl Default for TitleParams

source§

fn default() -> TitleParams

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for TitleParams

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 TitleParams

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 Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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 Twhere U: TryFrom<T>,

§

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 Twhere T: for<'de> Deserialize<'de>,