state["my_chart"] = chart
Afterwards, you can reference the chart in the specification using the syntax @{my_chart}
.
Alternatively, you can work with Vega-Lite directly.
Name | Type | Description | Options |
---|---|---|---|
Chart specification | Object | Vega-Lite chart specification. Pass a Vega Altair chart using state or paste a JSON specification. | - |
Custom CSS classes | Text | CSS classes, separated by spaces. You can define classes in custom stylesheets. | - |