vega-lite-api

vl.radio(…options)

Define a new HTML radio input element binding.

radio Method Overview

radio API Reference

# radio.debounce(value)

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

# radio.element(value)

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.

# radio.input(value)

# radio.labels(…value)

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.

# radio.name(value)

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.

# radio.options(…value)

An array of options to select from.