vega-lite-api

vl.slider(min, max, step)

Define a new HTML range input element binding.

slider Method Overview

slider API Reference

# slider.debounce(value)

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

# slider.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.

# slider.input(value)

# slider.max(value)

Sets the maximum slider value. Defaults to the larger of the signal value and 100.

# slider.min(value)

Sets the minimum slider value. Defaults to the smaller of the signal value and 0.

# slider.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.

# slider.step(value)

Sets the minimum slider increment. If undefined, the step size will be automatically determined based on the min and max values.