[−][src]Struct vega_lite_3::TitleParamsBuilder
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]
&mut self,
value: VALUE
) -> &mut Self
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]
Trait Implementations
impl Clone for TitleParamsBuilder
[src]
fn clone(&self) -> TitleParamsBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for TitleParamsBuilder
[src]
fn default() -> TitleParamsBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for TitleParamsBuilder
impl Send for TitleParamsBuilder
impl Sync for TitleParamsBuilder
impl Unpin for TitleParamsBuilder
impl UnwindSafe for TitleParamsBuilder
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,
fn borrow_mut(&mut self) -> &mut T
[src]
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.
fn to_owned(&self) -> T
[src]
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.
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>,