render_chart
Render chart specs to PNG images with theme, scale, and transparency options. Returns metadata plus an inline image for direct use.
Instructions
Render a chart spec to a PNG and return metadata plus the inline image.
Args:
spec: The chart spec (schema v1); see the charting://schema resource.
out: Output PNG path. Defaults to <output_dir>/<slug>.png.
home: Data root. Defaults to $CHARTING_HOME or ~/.local/share/charting.
theme: Override the spec theme (light or dark).
scale: Override the pixel scale (1-4).
transparent: Force a transparent background.
force: Overwrite an existing output file.
keep_html: Keep the generated HTML next to the PNG in tmp/.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out | No | ||
| home | No | ||
| spec | Yes | ||
| force | No | ||
| scale | No | ||
| theme | No | ||
| keep_html | No | ||
| transparent | No |