Usage
Signature
Parameters
An Altair Chart object.
Selection type:
"point", "interval", or a bool. Defaults to True which will automatically detect the best selection type. This is ignored if the chart already has a point/interval selection param.List of legend fields (columns) for which to enable selection,
True to enable selection for all fields, or False to disable selection entirely. This is ignored if the chart already has a legend selection param.Markdown label for the element.
Optional callback to run when this element’s value changes.
Attributes
A dataframe of the plot data filtered by the selections.
A dataframe of the unfiltered chart data.
The selection of the chart; this may be an interval along the name of an axis or a selection of points.
Methods
apply_selection
Apply the selection to a DataFrame. This method is useful when you have a layered chart and you want to apply the selection to a DataFrame.df(ChartDataType): A DataFrame to apply the selection to.