[−][src]Struct vega_lite_3::TitleParams
Fields
align: Option<Align>
anchor: Option<TitleAnchor>
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<f64>
Angle in degrees of title text.
baseline: Option<TextBaseline>
Vertical text baseline for title text. One of "top"
, "middle"
, "bottom"
, or
"alphabetic"
.
color: Option<String>
Text color for title text.
dx: Option<f64>
Delta offset for title text x-coordinate.
dy: Option<f64>
Delta offset for title text y-coordinate.
font: Option<String>
Font name for title text.
font_size: Option<f64>
Font size in pixels for title text.
Default value: 10
.
font_style: Option<String>
Font style for title text.
font_weight: Option<FontWeight>
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
).
frame: Option<TitleFrame>
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).
limit: Option<f64>
The maximum allowed length in pixels of legend labels.
offset: Option<f64>
The orthogonal offset in pixels by which to displace the title from its position along the edge of the chart.
orient: Option<TitleOrient>
Default title orientation ("top"
, "bottom"
, "left"
, or "right"
)
style: Option<Style>
A mark style property to apply to the title text mark.
Default value: "group-title"
.
text: Option<String>
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]
fn clone(&self) -> TitleParams
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TitleParams
[src]
impl Default for TitleParams
[src]
fn default() -> TitleParams
[src]
impl<'de> Deserialize<'de> for TitleParams
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl From<TitleParams> for Title
[src]
fn from(original: TitleParams) -> Title
[src]
impl Serialize for TitleParams
[src]
Auto Trait Implementations
impl RefUnwindSafe for TitleParams
impl Send for TitleParams
impl Sync for TitleParams
impl Unpin for TitleParams
impl UnwindSafe for TitleParams
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> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: 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.
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>,