altair.selection
- altair.selection(name=None, type=Undefined, **kwds)
-
Create a named selection.
- Parameters
-
- namestring (optional)
-
The name of the selection. If not specified, a unique name will be created.
- typestring
-
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.
- Returns
-
- selection: Selection
-
The selection object that can be used in chart creation.