altair.parameter#

altair.parameter(name=None, select=None, **kwds)#

Create a named parameter.

Parameters
namestring (optional)

The name of the parameter. If not specified, a unique name will be created.

**kwds

additional keywords will be used to construct a parameter. If ‘select’ is among the keywords, then a SelectionParameter will be created. Otherwise, a VariableParameter will be created.

Returns
parameter: Parameter

The parameter object that can be used in chart creation.