chart.py
AltairChart
Bases: Output[Chart]
IO to save altair Charts.
Example usage:
>>> from pathlib import Path
>>> from ordeq_altair import AltairChart
>>> my_chart = AltairChart(
... path=Path("path/figure.pdf")
... )
save(chart, **save_options)
Saves the Altair chart to a specified path in HTML format.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
chart
|
Chart
|
The Altair chart to save. |
required |
**save_options
|
Any
|
Additional options to pass to the |
{}
|