altair.theme.TopLevelSelectionParameterKwds#
- class altair.theme.TopLevelSelectionParameterKwds#
altair.TopLevelSelectionParameterTypedDictwrapper.- Parameters:
- name
Required. A unique name for the selection parameter. Selection names should be valid JavaScript identifiers: they should contain only alphanumeric characters (or “$”, or “_”) and may not start with a digit. Reserved keywords that may not be used as parameter names are “datum”, “event”, “item”, and “parent”.
- select
Determines the default event processing and data query for the selection. Vega-Lite currently supports two selection types:
"point"– to select multiple discrete data values; the first value is selected onclickand additional values toggled on shift-click."interval"– to select a continuous range of data values ondrag.
- bind
When set, a selection is populated by input elements (also known as dynamic query widgets) or by interacting with the corresponding legend. Direct manipulation interaction is disabled by default; to re-enable it, set the selection’s on property.
Legend bindings are restricted to selections that only specify a single field or encoding.
Query widget binding takes the form of Vega’s input element binding definition or can be a mapping between projected field/encodings and binding definitions.
See also: bind documentation.
- value
Initialize the selection with a mapping between projected channels or field names and initial values.
See also: init documentation.
- views
By default, top-level selections are applied to every view in the visualization. If this property is specified, selections will only be applied to views with the given names.
- __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
nameselectbindvalueviews