Root definitions

SelectionParameter

Permalink

Properties

bind

anyOf [anyOf [BindCheckbox, BindRadioSelect, BindRange, BindInput, BindDirect], object, anyOf [string, LegendStreamBinding], string]

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.

name Required

string

select Required

anyOf [string, PointSelectionConfig, IntervalSelectionConfig]

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 on click and additional values toggled on shift-click.
  • "interval" -- to select a continuous range of data values on drag.
value

anyOf [anyOf [number ∪ string ∪ boolean ∪ null, DateTime], Array<Dict<SelectionInit>>, Dict<SelectionInitInterval>]

Initialize the selection with a mapping between projected channels or field names and initial values.

See also: init documentation.

Loading...

Editor and Validator