[−][src]Struct vega_lite_3::ConfigBuilder
Builder for Config
.
Methods
impl ConfigBuilder
[src]
pub fn area<VALUE: Into<AreaConfig>>(&mut self, value: VALUE) -> &mut Self
[src]
Area-Specific Config
pub fn autosize<VALUE: Into<Autosize>>(&mut self, value: VALUE) -> &mut Self
[src]
Sets 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.
"fit"
is only supported for single and layered views that don't use rangeStep
.
Default value: pad
pub fn axis<VALUE: Into<AxisConfig>>(&mut self, value: VALUE) -> &mut Self
[src]
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.
pub fn axis_band<VALUE: Into<AxisConfig>>(&mut self, value: VALUE) -> &mut Self
[src]
Specific axis config for axes with "band" scales.
pub fn axis_bottom<VALUE: Into<AxisConfig>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
Specific axis config for x-axis along the bottom edge of the chart.
pub fn axis_left<VALUE: Into<AxisConfig>>(&mut self, value: VALUE) -> &mut Self
[src]
Specific axis config for y-axis along the left edge of the chart.
pub fn axis_right<VALUE: Into<AxisConfig>>(&mut self, value: VALUE) -> &mut Self
[src]
Specific axis config for y-axis along the right edge of the chart.
pub fn axis_top<VALUE: Into<AxisConfig>>(&mut self, value: VALUE) -> &mut Self
[src]
Specific axis config for x-axis along the top edge of the chart.
pub fn axis_x<VALUE: Into<AxisConfig>>(&mut self, value: VALUE) -> &mut Self
[src]
X-axis specific config.
pub fn axis_y<VALUE: Into<AxisConfig>>(&mut self, value: VALUE) -> &mut Self
[src]
Y-axis specific config.
pub fn background<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
[src]
CSS color property to use as the background of the whole Vega-Lite view
Default value: none (transparent)
pub fn bar<VALUE: Into<RectConfig>>(&mut self, value: VALUE) -> &mut Self
[src]
Bar-Specific Config
pub fn boxplot<VALUE: Into<BoxPlotConfig>>(&mut self, value: VALUE) -> &mut Self
[src]
Box Config
pub fn circle<VALUE: Into<MarkConfig>>(&mut self, value: VALUE) -> &mut Self
[src]
Circle-Specific Config
pub fn concat<VALUE: Into<CompositionConfig>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
Default configuration for all concatenation view composition operators (concat
,
hconcat
, and vconcat
)
pub fn count_title<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
[src]
Default axis and legend title for count fields.
Default value: 'Count of Records
.
pub fn errorband<VALUE: Into<ErrorBandConfig>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
ErrorBand Config
pub fn errorbar<VALUE: Into<ErrorBarConfig>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
ErrorBar Config
pub fn facet<VALUE: Into<CompositionConfig>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
Default configuration for the facet
view composition operator
pub fn field_title<VALUE: Into<FieldTitle>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&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").
pub fn geoshape<VALUE: Into<MarkConfig>>(&mut self, value: VALUE) -> &mut Self
[src]
Geoshape-Specific Config
pub fn header<VALUE: Into<HeaderConfig>>(&mut self, value: VALUE) -> &mut Self
[src]
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.
pub fn header_column<VALUE: Into<HeaderConfig>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&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.
pub fn header_facet<VALUE: Into<HeaderConfig>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&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.
pub fn header_row<VALUE: Into<HeaderConfig>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&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.
pub fn invalid_values<VALUE: Into<RemovableValue<InvalidValues>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
Defines how Vega-Lite should handle invalid values (null
and NaN
).
- If set to
"filter"
(default), all data items with null values will be skipped (for line, trail, and area marks) or filtered (for other marks). - If
null
, all data items are included. In this case, invalid values will be interpreted as zeroes.
pub fn legend<VALUE: Into<LegendConfig>>(&mut self, value: VALUE) -> &mut Self
[src]
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.
pub fn line<VALUE: Into<LineConfig>>(&mut self, value: VALUE) -> &mut Self
[src]
Line-Specific Config
pub fn mark<VALUE: Into<MarkConfig>>(&mut self, value: VALUE) -> &mut Self
[src]
Mark Config
pub fn number_format<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
[src]
D3 Number format for guide labels and text marks. For example "s" for SI units. Use D3's number format pattern.
pub fn padding<VALUE: Into<Padding>>(&mut self, value: VALUE) -> &mut Self
[src]
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
pub fn point<VALUE: Into<MarkConfig>>(&mut self, value: VALUE) -> &mut Self
[src]
Point-Specific Config
pub fn projection<VALUE: Into<Projection>>(&mut self, value: VALUE) -> &mut Self
[src]
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.
pub fn range<VALUE: Into<HashMap<String, RangeValue>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&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.
pub fn rect<VALUE: Into<RectConfig>>(&mut self, value: VALUE) -> &mut Self
[src]
Rect-Specific Config
pub fn repeat<VALUE: Into<CompositionConfig>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
Default configuration for the repeat
view composition operator
pub fn rule<VALUE: Into<MarkConfig>>(&mut self, value: VALUE) -> &mut Self
[src]
Rule-Specific Config
pub fn scale<VALUE: Into<ScaleConfig>>(&mut self, value: VALUE) -> &mut Self
[src]
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.
pub fn selection<VALUE: Into<SelectionConfig>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
An object hash for defining default properties for each type of selections.
pub fn square<VALUE: Into<MarkConfig>>(&mut self, value: VALUE) -> &mut Self
[src]
Square-Specific Config
pub fn stack<VALUE: Into<StackOffset>>(&mut self, value: VALUE) -> &mut Self
[src]
Default stack offset for stackable mark.
pub fn style<VALUE: Into<HashMap<String, BaseMarkConfig>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&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.
pub fn text<VALUE: Into<TextConfig>>(&mut self, value: VALUE) -> &mut Self
[src]
Text-Specific Config
pub fn tick<VALUE: Into<TickConfig>>(&mut self, value: VALUE) -> &mut Self
[src]
Tick-Specific Config
pub fn time_format<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
[src]
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 format each label automatically so this config
would not affect axes.
pub fn title<VALUE: Into<BaseTitleConfig>>(&mut self, value: VALUE) -> &mut Self
[src]
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.
pub fn trail<VALUE: Into<LineConfig>>(&mut self, value: VALUE) -> &mut Self
[src]
Trail-Specific Config
pub fn view<VALUE: Into<ViewConfig>>(&mut self, value: VALUE) -> &mut Self
[src]
Default properties for single view plots.
pub fn build(&self) -> Result<Config, String>
[src]
Trait Implementations
impl Clone for ConfigBuilder
[src]
fn clone(&self) -> ConfigBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for ConfigBuilder
[src]
fn default() -> ConfigBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl UnwindSafe for ConfigBuilder
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> 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>,