Enum vega_lite_4::LegendText
source · pub enum LegendText {
String(String),
StringArray(Vec<String>),
}
Expand description
A string or array of strings indicating the name of custom styles to apply to the mark. A
style is a named collection of mark property defaults defined within the style
configuration. If style is
an array, later styles will override earlier styles. Any mark
properties explicitly
defined within the encoding
will override a style default.
Default value: The mark’s name. For example, a bar mark will have style "bar"
by
default. Note: Any specified style will augment the default style. For example, a bar
mark with "style": "foo"
will receive from config.style.bar
and config.style.foo
(the specified style "foo"
has higher precedence).
A string or array of strings indicating the name of custom styles to apply to the axis. A style is a named collection of axis property defined within the style configuration. If style is an array, later styles will override earlier styles.
Default value: (none) Note: Any specified style will augment the default style.
For example, an x-axis mark with "style": "foo"
will use config.axisX
and
config.style.foo
(the specified style "foo"
has higher precedence).
Placeholder text if the text
channel is not specified
The subtitle Text.
A mark style property to apply to the title text mark.
Default value: "group-title"
.
Output field names. This can be either a string or an array of strings with two elements
denoting the name for the fields for stack start and stack end respectively. If a single
string(e.g., "val"
) is provided, the end field will be "val_end"
.
A string or array of strings indicating the name of custom styles to apply to the view background. A style is a named collection of mark property defaults defined within the style configuration. If style is an array, later styles will override earlier styles.
Default value: "cell"
Note: Any specified view background properties will
augment the default style.
Variants§
Trait Implementations§
source§impl Clone for LegendText
impl Clone for LegendText
source§fn clone(&self) -> LegendText
fn clone(&self) -> LegendText
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more