Struct vega_lite_4::TitleParams
source · 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
impl Clone for TitleParams
source§fn clone(&self) -> TitleParams
fn clone(&self) -> TitleParams
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more