Add selection config (SelectionConfig) to a vega-lite spec.

## Usage

vl_config_selection(spec, interval = NULL, point = NULL, .object = NULL)

## Arguments

spec

An input vega-lite spec

interval

The default definition for an interval selection. All properties and transformations for an interval selection definition (except type) may be specified here.

For instance, setting interval to {"translate": false} disables the ability to move interval selections by default.

point

The default definition for a point selection. All properties and transformations for a point selection definition (except type) may be specified here.

For instance, setting point to {"on": "dblclick"} populates point selections on double-click by default.

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

## Value

A modified Vega-Lite Spec