[−][src]Struct vega_lite_4::TitleParams
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<Color>
dx: Option<CornerRadiusUnion>
dy: Option<CornerRadiusUnion>
font: Option<Color>
font_size: Option<FontSize>
font_style: Option<Color>
font_weight: Option<FontWeightUnion>
frame: Option<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<Color>
subtitle_font: Option<Color>
subtitle_font_size: Option<FontSize>
subtitle_font_style: Option<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
impl Clone for TitleParams
[src]
pub fn clone(&self) -> TitleParams
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TitleParams
[src]
impl Default for TitleParams
[src]
pub fn default() -> TitleParams
[src]
impl<'de> Deserialize<'de> for TitleParams
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl From<TitleParams> for TitleUnion
[src]
pub fn from(original: TitleParams) -> TitleUnion
[src]
impl Serialize for TitleParams
[src]
Auto Trait Implementations
impl RefUnwindSafe for TitleParams
[src]
impl Send for TitleParams
[src]
impl Sync for TitleParams
[src]
impl Unpin for TitleParams
[src]
impl UnwindSafe for TitleParams
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,