selection(name=None, type=Undefined, **kwds)¶
Create a named selection.
- name : string (optional)
The name of the selection. If not specified, a unique name will be created.
- type : string
The type of the selection: one of [“interval”, “single”, or “multi”]
- **kwds :
additional keywords will be used to construct a SelectionDef instance that controls the selection.
- selection: Selection
The selection object that can be used in chart creation.