Content
Vega Lite Chart
A component that displays Vega-Lite/Altair charts.
Generate a chart using Altair and pass it via state; it’ll be converted to Vega-Lite specification.
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.
Fields
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. |
Low code usage
This component can be declared directly in Python, using backend-driven UI.