shapelets.apps.DataApp.altair_chart#

DataApp.altair_chart(title: Optional[str] = None, chart: Optional[any] = None, **additional) AltairChartWidget#

Creates an Vega-Altair chart: a declarative statistical visualization library for Python (https://altair-viz.github.io/index.html).

Parameters:
titlestr, optional

String with the Altair Chart title. It will be placed on top of the Chart.

chartany , optional

Loads a JSON specification for Altair Chart.

Returns:
AltairChartWidget

Examples

>>> spec = alt.Chart(source).mark_bar().encode(
>>>     x='a',
>>>     y='b'
>>> )
>>> altair_chart = app.altair_chart(title='Title Altair Chart', spec=spec)

Bind compatibility

You can bind this widget with this:

Bindable as

You can bind this widget as:

Currently this widget cannot be used as input in a binding function.