[−][src]Struct vega_lite_3::HeaderConfig
Header configuration, which determines default properties for all headers.
For a full list of header configuration options, please see the corresponding section of in the header documentation.
Header configuration, which determines default properties for column headers.
For a full list of header configuration options, please see the corresponding section of in the header documentation.
Header configuration, which determines default properties for non-row/column facet headers.
For a full list of header configuration options, please see the corresponding section of in the header documentation.
Header configuration, which determines default properties for row headers.
For a full list of header configuration options, please see the corresponding section of in the header documentation.
Fields
format: Option<String>
The text formatting pattern for labels of guides (axes, legends, headers) and text marks.
- If the format type is
"number"
(e.g., for quantitative fields), this is D3's number format pattern. - If the format type is
"time"
(e.g., for temporal fields), this is D3's time format pattern.
See the format documentation for more examples.
Default value: Derived from numberFormat config for number format and from timeFormat config for time format.
format_type: Option<FormatType>
The format type for labels ("number"
or "time"
).
Default value:
"time"
for temporal fields and ordinal and nomimal fields withtimeUnit
."number"
for quantitative fields as well as ordinal and nomimal fields withouttimeUnit
.
label_align: Option<Align>
Horizontal text alignment of header labels.
label_anchor: Option<TitleAnchor>
The anchor position for placing the labels. One of "start"
, "middle"
, or "end"
. For
example, with a label orientation of top these anchor positions map to a left-, center-,
or right-aligned label.
label_angle: Option<f64>
The rotation angle of the header labels.
Default value: 0
for column header, -90
for row header.
label_color: Option<String>
The color of the header label, can be in hex color code or regular color name.
label_font: Option<String>
The font of the header label.
label_font_size: Option<f64>
The font size of the header label, in pixels.
label_font_style: Option<String>
The font style of the header label.
label_limit: Option<f64>
The maximum length of the header label in pixels. The text value will be automatically truncated if the rendered size exceeds the limit.
Default value: 0
, indicating no limit
label_orient: Option<Orient>
The orientation of the header label. One of "top"
, "bottom"
, "left"
or "right"
.
label_padding: Option<f64>
The padding, in pixel, between facet header's label and the plot.
Default value: 10
labels: Option<bool>
A boolean flag indicating if labels should be included as part of the header.
Default value: true
.
short_time_labels: Option<bool>
Whether month names and weekday names should be abbreviated.
Default value: false
title: RemovableValue<Value>
Set to null to disable title for the axis, legend, or header.
title_align: Option<Align>
Horizontal text alignment (to the anchor) of header titles.
title_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.
title_angle: Option<f64>
The rotation angle of the header title.
Default value: 0
.
title_baseline: Option<TextBaseline>
Vertical text baseline for the header title. One of "top"
, "bottom"
, "middle"
.
Default value: "middle"
title_color: Option<String>
Color of the header title, can be in hex color code or regular color name.
title_font: Option<String>
Font of the header title. (e.g., "Helvetica Neue"
).
title_font_size: Option<f64>
Font size of the header title.
title_font_style: Option<String>
The font style of the header title.
title_font_weight: Option<FontWeight>
Font weight of the header title.
This can be either a string (e.g "bold"
, "normal"
) or a number (100
, 200
, 300
,
..., 900
where "normal"
= 400
and "bold"
= 700
).
title_limit: Option<f64>
The maximum length of the header title in pixels. The text value will be automatically truncated if the rendered size exceeds the limit.
Default value: 0
, indicating no limit
title_orient: Option<Orient>
The orientation of the header title. One of "top"
, "bottom"
, "left"
or "right"
.
title_padding: Option<f64>
The padding, in pixel, between facet header's title and the label.
Default value: 10
Trait Implementations
impl Clone for HeaderConfig
[src]
fn clone(&self) -> HeaderConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for HeaderConfig
[src]
impl Default for HeaderConfig
[src]
fn default() -> HeaderConfig
[src]
impl<'de> Deserialize<'de> for HeaderConfig
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for HeaderConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for HeaderConfig
impl Send for HeaderConfig
impl Sync for HeaderConfig
impl Unpin for HeaderConfig
impl UnwindSafe for HeaderConfig
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>,