Struct vega_lite::TitleParams
source · pub struct TitleParams {
pub anchor: Option<Anchor>,
pub offset: Option<f64>,
pub orient: Option<TitleOrient>,
pub style: Option<Style>,
pub text: String,
}
Fields§
§anchor: Option<Anchor>
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"
.
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>
The orientation of the title relative to the chart. One of "top"
(the default),
"bottom"
, "left"
, or "right"
.
style: Option<Style>
A mark style property to apply to the title text mark.
Default value: "group-title"
.
text: String
The title text.
Trait Implementations§
source§impl Debug for TitleParams
impl Debug for TitleParams
source§impl<'de> Deserialize<'de> for TitleParams
impl<'de> Deserialize<'de> for TitleParams
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more