Skip to contents

Add direct binding to a vega-lite spec.

Usage

vl_bind_direct_input(
  spec,
  parameter_name,
  projection_name = NULL,
  debounce = NULL,
  element = NULL,
  event = 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 input element that exposes a value property and supports the EventTarget interface, or a CSS selector string to such an element. When the element updates and dispatches an event, the value property will be used as the new, bound signal value. When the signal updates independent of the element, the value property will be set to the signal value and a new event will be dispatched on the element.

event

The event (default "input") to listen for to track changes on the external element.

.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: BindDirect

Value

A modified Vega-Lite Spec