Struct vega_lite_4::ConfigBuilder
source · pub struct ConfigBuilder { /* private fields */ }
Expand description
Builder for Config
.
Implementations§
source§impl ConfigBuilder
impl ConfigBuilder
sourcepub fn arc<VALUE: Into<RectConfig>>(&mut self, value: VALUE) -> &mut Self
pub fn arc<VALUE: Into<RectConfig>>(&mut self, value: VALUE) -> &mut Self
Arc-specific Config
sourcepub fn area<VALUE: Into<AreaConfig>>(&mut self, value: VALUE) -> &mut Self
pub fn area<VALUE: Into<AreaConfig>>(&mut self, value: VALUE) -> &mut Self
Area-Specific Config
sourcepub fn aria<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn aria<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
A boolean flag indicating if ARIA default attributes should be included for marks and
guides (SVG output only). If false, the "aria-hidden"
attribute will be set for all
guides, removing them from the ARIA accessibility tree and Vega-Lite will not generate
default descriptions for marks.
Default value: true
.
sourcepub fn autosize<VALUE: Into<Box<Autosize>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn autosize<VALUE: Into<Box<Autosize>>>( &mut self, value: VALUE ) -> &mut Self
How the visualization size should be determined. If a string, should be one of "pad"
,
"fit"
or "none"
. Object values can additionally specify parameters for content sizing
and automatic resizing.
Default value: pad
sourcepub fn axis<VALUE: Into<AxisConfig>>(&mut self, value: VALUE) -> &mut Self
pub fn axis<VALUE: Into<AxisConfig>>(&mut self, value: VALUE) -> &mut Self
Axis configuration, which determines default properties for all x
and y
axes. For a full list of axis
configuration options, please see the corresponding section of the axis
documentation.
sourcepub fn axis_band<VALUE: Into<AxisConfig>>(&mut self, value: VALUE) -> &mut Self
pub fn axis_band<VALUE: Into<AxisConfig>>(&mut self, value: VALUE) -> &mut Self
Config for axes with “band” scales.
sourcepub fn axis_bottom<VALUE: Into<AxisConfig>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn axis_bottom<VALUE: Into<AxisConfig>>( &mut self, value: VALUE ) -> &mut Self
Config for x-axis along the bottom edge of the chart.
sourcepub fn axis_discrete<VALUE: Into<AxisConfig>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn axis_discrete<VALUE: Into<AxisConfig>>( &mut self, value: VALUE ) -> &mut Self
Config for axes with “point” or “band” scales.
sourcepub fn axis_left<VALUE: Into<AxisConfig>>(&mut self, value: VALUE) -> &mut Self
pub fn axis_left<VALUE: Into<AxisConfig>>(&mut self, value: VALUE) -> &mut Self
Config for y-axis along the left edge of the chart.
sourcepub fn axis_point<VALUE: Into<AxisConfig>>(&mut self, value: VALUE) -> &mut Self
pub fn axis_point<VALUE: Into<AxisConfig>>(&mut self, value: VALUE) -> &mut Self
Config for axes with “point” scales.
sourcepub fn axis_quantitative<VALUE: Into<AxisConfig>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn axis_quantitative<VALUE: Into<AxisConfig>>( &mut self, value: VALUE ) -> &mut Self
Config for quantitative axes.
sourcepub fn axis_right<VALUE: Into<AxisConfig>>(&mut self, value: VALUE) -> &mut Self
pub fn axis_right<VALUE: Into<AxisConfig>>(&mut self, value: VALUE) -> &mut Self
Config for y-axis along the right edge of the chart.
sourcepub fn axis_temporal<VALUE: Into<AxisConfig>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn axis_temporal<VALUE: Into<AxisConfig>>( &mut self, value: VALUE ) -> &mut Self
Config for temporal axes.
sourcepub fn axis_top<VALUE: Into<AxisConfig>>(&mut self, value: VALUE) -> &mut Self
pub fn axis_top<VALUE: Into<AxisConfig>>(&mut self, value: VALUE) -> &mut Self
Config for x-axis along the top edge of the chart.
sourcepub fn axis_x<VALUE: Into<AxisConfig>>(&mut self, value: VALUE) -> &mut Self
pub fn axis_x<VALUE: Into<AxisConfig>>(&mut self, value: VALUE) -> &mut Self
X-axis specific config.
sourcepub fn axis_x_band<VALUE: Into<AxisConfig>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn axis_x_band<VALUE: Into<AxisConfig>>( &mut self, value: VALUE ) -> &mut Self
Config for x-axes with “band” scales.
sourcepub fn axis_x_discrete<VALUE: Into<AxisConfig>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn axis_x_discrete<VALUE: Into<AxisConfig>>( &mut self, value: VALUE ) -> &mut Self
Config for x-axes with “point” or “band” scales.
sourcepub fn axis_x_point<VALUE: Into<AxisConfig>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn axis_x_point<VALUE: Into<AxisConfig>>( &mut self, value: VALUE ) -> &mut Self
Config for x-axes with “point” scales.
sourcepub fn axis_x_quantitative<VALUE: Into<AxisConfig>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn axis_x_quantitative<VALUE: Into<AxisConfig>>( &mut self, value: VALUE ) -> &mut Self
Config for x-quantitative axes.
sourcepub fn axis_x_temporal<VALUE: Into<AxisConfig>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn axis_x_temporal<VALUE: Into<AxisConfig>>( &mut self, value: VALUE ) -> &mut Self
Config for x-temporal axes.
sourcepub fn axis_y<VALUE: Into<AxisConfig>>(&mut self, value: VALUE) -> &mut Self
pub fn axis_y<VALUE: Into<AxisConfig>>(&mut self, value: VALUE) -> &mut Self
Y-axis specific config.
sourcepub fn axis_y_band<VALUE: Into<AxisConfig>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn axis_y_band<VALUE: Into<AxisConfig>>( &mut self, value: VALUE ) -> &mut Self
Config for y-axes with “band” scales.
sourcepub fn axis_y_discrete<VALUE: Into<AxisConfig>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn axis_y_discrete<VALUE: Into<AxisConfig>>( &mut self, value: VALUE ) -> &mut Self
Config for y-axes with “point” or “band” scales.
sourcepub fn axis_y_point<VALUE: Into<AxisConfig>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn axis_y_point<VALUE: Into<AxisConfig>>( &mut self, value: VALUE ) -> &mut Self
Config for y-axes with “point” scales.
sourcepub fn axis_y_quantitative<VALUE: Into<AxisConfig>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn axis_y_quantitative<VALUE: Into<AxisConfig>>( &mut self, value: VALUE ) -> &mut Self
Config for y-quantitative axes.
sourcepub fn axis_y_temporal<VALUE: Into<AxisConfig>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn axis_y_temporal<VALUE: Into<AxisConfig>>( &mut self, value: VALUE ) -> &mut Self
Config for y-temporal axes.
sourcepub fn background<VALUE: Into<Box<Color>>>(&mut self, value: VALUE) -> &mut Self
pub fn background<VALUE: Into<Box<Color>>>(&mut self, value: VALUE) -> &mut Self
CSS color property to use as the background of the entire view.
Default value: "white"
sourcepub fn boxplot<VALUE: Into<BoxPlotConfig>>(&mut self, value: VALUE) -> &mut Self
pub fn boxplot<VALUE: Into<BoxPlotConfig>>(&mut self, value: VALUE) -> &mut Self
Box Config
sourcepub fn circle<VALUE: Into<MarkConfig>>(&mut self, value: VALUE) -> &mut Self
pub fn circle<VALUE: Into<MarkConfig>>(&mut self, value: VALUE) -> &mut Self
Circle-Specific Config
sourcepub fn concat<VALUE: Into<CompositionConfig>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn concat<VALUE: Into<CompositionConfig>>( &mut self, value: VALUE ) -> &mut Self
Default configuration for all concatenation and repeat view composition operators
(concat
, hconcat
, vconcat
, and repeat
)
sourcepub fn count_title<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn count_title<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Default axis and legend title for count fields.
Default value: 'Count of Records
.
sourcepub fn custom_format_types<VALUE: Into<bool>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn custom_format_types<VALUE: Into<bool>>( &mut self, value: VALUE ) -> &mut Self
Allow the formatType
property for text marks and guides to accept a custom formatter
function registered as a Vega
expression.
sourcepub fn errorband<VALUE: Into<ErrorBandConfig>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn errorband<VALUE: Into<ErrorBandConfig>>( &mut self, value: VALUE ) -> &mut Self
ErrorBand Config
sourcepub fn errorbar<VALUE: Into<ErrorBarConfig>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn errorbar<VALUE: Into<ErrorBarConfig>>( &mut self, value: VALUE ) -> &mut Self
ErrorBar Config
sourcepub fn facet<VALUE: Into<CompositionConfig>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn facet<VALUE: Into<CompositionConfig>>( &mut self, value: VALUE ) -> &mut Self
Default configuration for the facet
view composition operator
sourcepub fn field_title<VALUE: Into<FieldTitle>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn field_title<VALUE: Into<FieldTitle>>( &mut self, value: VALUE ) -> &mut Self
Defines how Vega-Lite generates title for fields. There are three possible styles: -
"verbal"
(Default) - displays function in a verbal style (e.g., “Sum of field”,
“Year-month of date”, “field (binned)”). - "function"
- displays function using
parentheses and capitalized texts (e.g., “SUM(field)”, “YEARMONTH(date)”, “BIN(field)”).
"plain"
- displays only the field name without functions (e.g., “field”, “date”, “field”).
sourcepub fn font<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn font<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Default font for all text marks, titles, and labels.
sourcepub fn geoshape<VALUE: Into<MarkConfig>>(&mut self, value: VALUE) -> &mut Self
pub fn geoshape<VALUE: Into<MarkConfig>>(&mut self, value: VALUE) -> &mut Self
Geoshape-Specific Config
sourcepub fn header<VALUE: Into<HeaderConfig>>(&mut self, value: VALUE) -> &mut Self
pub fn header<VALUE: Into<HeaderConfig>>(&mut self, value: VALUE) -> &mut Self
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.
sourcepub fn header_column<VALUE: Into<HeaderConfig>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn header_column<VALUE: Into<HeaderConfig>>( &mut self, value: VALUE ) -> &mut Self
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.
sourcepub fn header_facet<VALUE: Into<HeaderConfig>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn header_facet<VALUE: Into<HeaderConfig>>( &mut self, value: VALUE ) -> &mut Self
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.
sourcepub fn header_row<VALUE: Into<HeaderConfig>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn header_row<VALUE: Into<HeaderConfig>>( &mut self, value: VALUE ) -> &mut Self
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.
sourcepub fn image<VALUE: Into<RectConfig>>(&mut self, value: VALUE) -> &mut Self
pub fn image<VALUE: Into<RectConfig>>(&mut self, value: VALUE) -> &mut Self
Image-specific Config
sourcepub fn legend<VALUE: Into<LegendConfig>>(&mut self, value: VALUE) -> &mut Self
pub fn legend<VALUE: Into<LegendConfig>>(&mut self, value: VALUE) -> &mut Self
Legend configuration, which determines default properties for all legends. For a full list of legend configuration options, please see the corresponding section of in the legend documentation.
sourcepub fn line<VALUE: Into<LineConfig>>(&mut self, value: VALUE) -> &mut Self
pub fn line<VALUE: Into<LineConfig>>(&mut self, value: VALUE) -> &mut Self
Line-Specific Config
sourcepub fn line_break<VALUE: Into<Box<Color>>>(&mut self, value: VALUE) -> &mut Self
pub fn line_break<VALUE: Into<Box<Color>>>(&mut self, value: VALUE) -> &mut Self
A delimiter, such as a newline character, upon which to break text strings into multiple lines. This property provides a global default for text marks, which is overridden by mark or style config settings, and by the lineBreak mark encoding channel. If signal-valued, either string or regular expression (regexp) values are valid.
sourcepub fn mark<VALUE: Into<MarkConfig>>(&mut self, value: VALUE) -> &mut Self
pub fn mark<VALUE: Into<MarkConfig>>(&mut self, value: VALUE) -> &mut Self
Mark Config
sourcepub fn number_format<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn number_format<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
D3 Number format for guide labels and text marks. For example "s"
for SI units. Use
D3’s number format pattern.
sourcepub fn padding<VALUE: Into<Box<Padding>>>(&mut self, value: VALUE) -> &mut Self
pub fn padding<VALUE: Into<Box<Padding>>>(&mut self, value: VALUE) -> &mut Self
The default visualization padding, in pixels, from the edge of the visualization canvas
to the data rectangle. If a number, specifies padding for all sides. If an object, the
value should have the format {"left": 5, "top": 5, "right": 5, "bottom": 5}
to specify
padding for each side of the visualization.
Default value: 5
sourcepub fn params<VALUE: Into<Vec<Parameter>>>(&mut self, value: VALUE) -> &mut Self
pub fn params<VALUE: Into<Vec<Parameter>>>(&mut self, value: VALUE) -> &mut Self
Dynamic variables that parameterize a visualization.
sourcepub fn point<VALUE: Into<MarkConfig>>(&mut self, value: VALUE) -> &mut Self
pub fn point<VALUE: Into<MarkConfig>>(&mut self, value: VALUE) -> &mut Self
Point-Specific Config
sourcepub fn projection<VALUE: Into<Box<Projection>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn projection<VALUE: Into<Box<Projection>>>( &mut self, value: VALUE ) -> &mut Self
Projection configuration, which determines default properties for all projections. For a full list of projection configuration options, please see the corresponding section of the projection documentation.
sourcepub fn range<VALUE: Into<HashMap<String, RangeValue>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn range<VALUE: Into<HashMap<String, RangeValue>>>( &mut self, value: VALUE ) -> &mut Self
An object hash that defines default range arrays or schemes for using with scales. For a full list of scale range configuration options, please see the corresponding section of the scale documentation.
sourcepub fn rect<VALUE: Into<RectConfig>>(&mut self, value: VALUE) -> &mut Self
pub fn rect<VALUE: Into<RectConfig>>(&mut self, value: VALUE) -> &mut Self
Rect-Specific Config
sourcepub fn rule<VALUE: Into<MarkConfig>>(&mut self, value: VALUE) -> &mut Self
pub fn rule<VALUE: Into<MarkConfig>>(&mut self, value: VALUE) -> &mut Self
Rule-Specific Config
sourcepub fn scale<VALUE: Into<ScaleConfig>>(&mut self, value: VALUE) -> &mut Self
pub fn scale<VALUE: Into<ScaleConfig>>(&mut self, value: VALUE) -> &mut Self
Scale configuration determines default properties for all scales. For a full list of scale configuration options, please see the corresponding section of the scale documentation.
sourcepub fn selection<VALUE: Into<SelectionConfig>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn selection<VALUE: Into<SelectionConfig>>( &mut self, value: VALUE ) -> &mut Self
An object hash for defining default properties for each type of selections.
sourcepub fn square<VALUE: Into<MarkConfig>>(&mut self, value: VALUE) -> &mut Self
pub fn square<VALUE: Into<MarkConfig>>(&mut self, value: VALUE) -> &mut Self
Square-Specific Config
sourcepub fn style<VALUE: Into<HashMap<String, StyleValue>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn style<VALUE: Into<HashMap<String, StyleValue>>>( &mut self, value: VALUE ) -> &mut Self
An object hash that defines key-value mappings to determine default properties for marks with a given style. The keys represent styles names; the values have to be valid mark configuration objects.
sourcepub fn text<VALUE: Into<MarkConfig>>(&mut self, value: VALUE) -> &mut Self
pub fn text<VALUE: Into<MarkConfig>>(&mut self, value: VALUE) -> &mut Self
Text-Specific Config
sourcepub fn tick<VALUE: Into<TickConfig>>(&mut self, value: VALUE) -> &mut Self
pub fn tick<VALUE: Into<TickConfig>>(&mut self, value: VALUE) -> &mut Self
Tick-Specific Config
sourcepub fn time_format<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn time_format<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Default time format for raw time values (without time units) in text marks, legend labels and header labels.
Default value: "%b %d, %Y"
Note: Axes automatically determine the format for
each label automatically so this config does not affect axes.
sourcepub fn title<VALUE: Into<BaseTitleNoValueRefs>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn title<VALUE: Into<BaseTitleNoValueRefs>>( &mut self, value: VALUE ) -> &mut Self
Title configuration, which determines default properties for all titles. For a full list of title configuration options, please see the corresponding section of the title documentation.
sourcepub fn trail<VALUE: Into<LineConfig>>(&mut self, value: VALUE) -> &mut Self
pub fn trail<VALUE: Into<LineConfig>>(&mut self, value: VALUE) -> &mut Self
Trail-Specific Config
sourcepub fn view<VALUE: Into<ViewConfig>>(&mut self, value: VALUE) -> &mut Self
pub fn view<VALUE: Into<ViewConfig>>(&mut self, value: VALUE) -> &mut Self
Default properties for single view plots.
Trait Implementations§
source§impl Clone for ConfigBuilder
impl Clone for ConfigBuilder
source§fn clone(&self) -> ConfigBuilder
fn clone(&self) -> ConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more