An interval selection also adds a rectangle mark to depict the
extents of the interval. The mark property can be used to customize the
appearance of the mark.
Object for defining datetime in Vega-Lite Filter.
If both month and quarter are provided, month has higher precedence.
day cannot be combined with other date.
We accept string for month and day names.
The default definition for an
interval selection. All
properties and transformations
for an interval selection definition (except type) may be specified here.
Color of the marks – either fill or stroke color based on the filled property of mark
definition.
By default, color represents fill color for "area", "bar", "tick",
"text", "trail", "circle", and "square" / stroke color for "line" and
"point".
An object defining properties of geographic projection, which will be applied to shape
path for "geoshape" marks
and to latitude and "longitude" channels for other marks.
The default definition for a
single selection. All
properties and transformations
for a single selection definition (except type) may be specified here.
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.
A string describing the mark type (one of "bar", "circle", "square", "tick",
"line",
"area", "point", "rule", "geoshape", and "text") or a mark definition
object.
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.
Establishes a two-way binding between the interval selection and the scales
used within the same view. This allows a user to interactively pan and
zoom the view.
Determines how size calculation should be performed, one of "content" or "padding".
The default setting ("content") interprets the width and height settings as the data
rectangle (plotting) dimensions, to which padding is then added. In contrast, the
"padding" setting includes the padding within the view size calculations, such that the
width and height settings indicate the total intended size of the view.
Type of input data: "json", "csv", "tsv", "dsv".
The default format type is determined by the extension of the file URL.
If no extension is detected, "json" will be used by default.
The full data set, included inline. This can be an array of objects or primitive values,
an object, or a string.
Arrays of primitive values are ingested as objects with a data property. Strings are
parsed according to the specified format type.
Value representing the day of a week. This can be one of: (1) integer value – 1
represents Monday; (2) case-insensitive day name (e.g., "Monday"); (3)
case-insensitive, 3-character short day name (e.g., "Mon"). Warning: A
DateTime definition object with day** should not be combined with year, quarter,
month, or date.
The direction of the text. One of "ltr" (left-to-right) or "rtl" (right-to-left).
This property determines on which side is truncated in response to the limit parameter.
The full data set, included inline. This can be an array of objects or primitive values,
an object, or a string.
Arrays of primitive values are ingested as objects with a data property. Strings are
parsed according to the specified format type.
The interpolation method for range values. By default, a general interpolator for
numbers, dates, strings and colors (in RGB space) is used. For color ranges, this
property allows interpolation in alternative color spaces. Legal values include rgb,
hsl, hsl-long, lab, hcl, hcl-long, cubehelix and cubehelix-long (‘-long’
variants use longer paths in polar coordinate spaces). If object-valued, this property
accepts an object with a string-valued type property and an optional numeric gamma
property applicable to rgb and cubehelix interpolators. For more, see the d3-interpolate
documentation.
Indicates if labels should be hidden if they exceed the axis range. If false (the
default) no bounds overlap analysis is performed. If true, labels will be hidden if
they exceed the axis range by more than 1 pixel. If this property is a number, it
specifies the pixel tolerance: the maximum amount by which a label bounding box may
exceed the axis range.
The orientation of the legend, which determines how the legend is positioned within the
scene. One of “left”, “right”, “top-left”, “top-right”, “bottom-left”, “bottom-right”,
“none”.
One of: (1) integer value representing the month from 1-12. 1 represents January;
(2) case-insensitive month name (e.g., "January"); (3) case-insensitive, 3-character
short month name (e.g., "Jan").
Extending the domain so that it starts and ends on nice round values. This method
typically modifies the scale’s domain, and may only extend the bounds to the nearest
round value. Nicing is useful if the domain is computed from data and may be irregular.
For example, for a domain of [0.201479…, 0.996679…], a nice domain might be [0.2,
1.0].
The window or aggregation operations to apply within a window, including rank, lead,
sum, average or count. See the list of all supported operations
here.
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.
With layered and multi-view displays, a strategy that determines how
selections’ data queries are resolved when applied in a filter transform,
conditional encoding rule, or scale domain.
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.
When truthy, allows a user to interactively move an interval selection
back-and-forth. Can be true, false (to disable panning), or a
Vega event stream definition
which must include a start and end event to trigger continuous panning.
The encoded field’s type of measurement ("quantitative", "temporal", "ordinal", or
"nominal").
It can also be a "geojson" type for encoding
‘geoshape’.
The cartographic projection to use. This value is case-insensitive, for example
"albers" and "Albers" indicate the same projection type. You can find all valid
projection types in the
documentation.