altair.theme.IntervalSelectionConfigWithoutTypeKwds#
- class altair.theme.IntervalSelectionConfigWithoutTypeKwds#
altair.IntervalSelectionConfigWithoutType
TypedDict
wrapper.- Parameters:
- clear
Clears the selection, emptying it of all values. This property can be a Event Stream or
false
to disable clear.Default value:
dblclick
.See also: clear examples in the documentation.
- encodings
An array of encoding channels. The corresponding data field values must match for a data tuple to fall within the selection.
See also: The projection with encodings and fields section in the documentation.
- fields
An array of field names whose values must match for a data tuple to fall within the selection.
See also: The projection with encodings and fields section in the documentation.
- mark
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.See also: mark examples in the documentation.
- on
A Vega event stream (object or selector) that triggers the selection. For interval selections, the event stream must specify a start and end.
See also: on examples in the documentation.
- resolve
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.
One of:
"global"
– only one brush exists for the entire SPLOM. When the user begins to drag, any previous brushes are cleared, and a new one is constructed."union"
– each cell contains its own brush, and points are highlighted if they lie within any of these individual brushes."intersect"
– each cell contains its own brush, and points are highlighted only if they fall within all of these individual brushes.
Default value:
global
.See also: resolve examples in the documentation.
- translate
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. Discrete panning (e.g., pressing the left/right arrow keys) will be supported in future versions.Default value:
true
, which corresponds to[pointerdown, window:pointerup] > window:pointermove!
. This default allows users to clicks and drags within an interval selection to reposition it.See also: translate examples in the documentation.
- zoom
When truthy, allows a user to interactively resize an interval selection. Can be
true
,false
(to disable zooming), or a Vega event stream definition. Currently, onlywheel
events are supported, but custom event streams can still be used to specify filters, debouncing, and throttling. Future versions will expand the set of events that can trigger this transformation.Default value:
true
, which corresponds towheel!
. This default allows users to use the mouse wheel to resize an interval selection.See also: zoom examples in the documentation.
- __init__(*args, **kwargs)#
Methods
__init__
(*args, **kwargs)clear
()copy
()fromkeys
(iterable[, value])Create a new dictionary with keys from iterable and values set to value.
get
(key[, default])Return the value for key if key is in the dictionary, else default.
items
()keys
()pop
(key[, default])If the key is not found, return the default if given; otherwise, raise a KeyError.
popitem
(/)Remove and return a (key, value) pair as a 2-tuple.
setdefault
(key[, default])Insert key with a value of default if key is not in the dictionary.
update
([E, ]**F)If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]
values
()Attributes
encodings
fields
mark
on
resolve
translate
zoom