Skip to contents

Add radio binding to a vega-lite spec.

Usage

vl_bind_radio_input(
  spec,
  parameter_name,
  projection_name = NULL,
  debounce = NULL,
  element = NULL,
  labels = NULL,
  name = NULL,
  options = NULL,
  .object = NULL
)

Arguments

spec

An input vega-lite spec

parameter_name

Name of parameter to add binding to

projection_name

Name of projection (field or encoding) within selection

debounce

If defined, delays event handling until the specified milliseconds have elapsed since the last event was fired.

element

An optional CSS selector string indicating the parent element to which the input element should be added. By default, all input elements are added within the parent container of the Vega view.

labels

An array of label strings to represent the options values. If unspecified, the options value will be coerced to a string and used as the label.

name

By default, the signal name is used to label input elements. This name property can be used instead to specify a custom label for the bound signal.

options

An array of options to select from.

.object

Directly input an object, rather than creating one via the other arguments. Should not be used in conjunction with the other arguments other than spec. Objects can be of type: BindRadioSelect

Value

A modified Vega-Lite Spec