Struct vega_lite_4::TitleParamsBuilder
source · pub struct TitleParamsBuilder { /* private fields */ }
Expand description
Builder for TitleParams
.
Implementations§
source§impl TitleParamsBuilder
impl TitleParamsBuilder
sourcepub fn align<VALUE: Into<Align>>(&mut self, value: VALUE) -> &mut Self
pub fn align<VALUE: Into<Align>>(&mut self, value: VALUE) -> &mut Self
Horizontal text alignment for title text. One of "left"
, "center"
, or "right"
.
sourcepub fn anchor<VALUE: Into<TitleAnchorEnum>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn anchor<VALUE: Into<TitleAnchorEnum>>( &mut self, value: VALUE ) -> &mut Self
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<CornerRadiusUnion>>( &mut self, value: VALUE ) -> &mut Self
pub fn aria<VALUE: Into<Aria>>(&mut self, value: VALUE) -> &mut Self
sourcepub fn baseline<VALUE: Into<Baseline>>(&mut self, value: VALUE) -> &mut Self
pub fn baseline<VALUE: Into<Baseline>>(&mut self, value: VALUE) -> &mut Self
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.
pub fn color<VALUE: Into<Box<Color>>>(&mut self, value: VALUE) -> &mut Self
pub fn dx<VALUE: Into<CornerRadiusUnion>>(&mut self, value: VALUE) -> &mut Self
pub fn dy<VALUE: Into<CornerRadiusUnion>>(&mut self, value: VALUE) -> &mut Self
pub fn font<VALUE: Into<Box<Color>>>(&mut self, value: VALUE) -> &mut Self
pub fn font_size<VALUE: Into<FontSize>>(&mut self, value: VALUE) -> &mut Self
pub fn font_style<VALUE: Into<Box<Color>>>(&mut self, value: VALUE) -> &mut Self
pub fn font_weight<VALUE: Into<FontWeightUnion>>( &mut self, value: VALUE ) -> &mut Self
pub fn frame<VALUE: Into<Box<Color>>>(&mut self, value: VALUE) -> &mut Self
pub fn limit<VALUE: Into<FontSize>>(&mut self, value: VALUE) -> &mut Self
pub fn line_height<VALUE: Into<CornerRadiusUnion>>( &mut self, value: VALUE ) -> &mut Self
pub fn offset<VALUE: Into<CornerRadiusUnion>>( &mut self, value: VALUE ) -> &mut Self
pub fn orient<VALUE: Into<TitleParamsOrient>>( &mut self, value: VALUE ) -> &mut Self
sourcepub fn style<VALUE: Into<LegendText>>(&mut self, value: VALUE) -> &mut Self
pub fn style<VALUE: Into<LegendText>>(&mut self, value: VALUE) -> &mut Self
A mark style property to apply to the title text mark.
Default value: "group-title"
.
sourcepub fn subtitle<VALUE: Into<LegendText>>(&mut self, value: VALUE) -> &mut Self
pub fn subtitle<VALUE: Into<LegendText>>(&mut self, value: VALUE) -> &mut Self
The subtitle Text.
pub fn subtitle_color<VALUE: Into<Box<Color>>>( &mut self, value: VALUE ) -> &mut Self
pub fn subtitle_font<VALUE: Into<Box<Color>>>( &mut self, value: VALUE ) -> &mut Self
pub fn subtitle_font_size<VALUE: Into<FontSize>>( &mut self, value: VALUE ) -> &mut Self
pub fn subtitle_font_style<VALUE: Into<Box<Color>>>( &mut self, value: VALUE ) -> &mut Self
pub fn subtitle_font_weight<VALUE: Into<FontWeightUnion>>( &mut self, value: VALUE ) -> &mut Self
pub fn subtitle_line_height<VALUE: Into<CornerRadiusUnion>>( &mut self, value: VALUE ) -> &mut Self
pub fn subtitle_padding<VALUE: Into<CornerRadiusUnion>>( &mut self, value: VALUE ) -> &mut Self
sourcepub fn text<VALUE: Into<ConditionalValueDefTextExprRefText>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn text<VALUE: Into<ConditionalValueDefTextExprRefText>>( &mut self, value: VALUE ) -> &mut Self
The title text.
sourcepub fn zindex<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn zindex<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
The integer z-index indicating the layering of the title group relative to other axis, mark and legend groups.
Default value: 0
.
sourcepub fn build(&self) -> Result<TitleParams, TitleParamsBuilderError>
pub fn build(&self) -> Result<TitleParams, TitleParamsBuilderError>
Trait Implementations§
source§impl Clone for TitleParamsBuilder
impl Clone for TitleParamsBuilder
source§fn clone(&self) -> TitleParamsBuilder
fn clone(&self) -> TitleParamsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more