generate_chart
Convert natural language queries and datasets into production-ready charts, output as shareable links, SVG, or PNG.
Instructions
Generates a production-ready chart specification and returns it in the requested format (share_link, svg, or png). Engine selection is automatically determined by chart type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_intent | No | Natural language visualization query or prompt. | |
| dataset_json | No | Raw JSON data string. | |
| focus_columns | No | Key data column names to prioritize. | |
| output_format | No | Desired output format for the chart: "share_link" (public web URLs), "svg" (vector SVG markup), or "png" (rasterized image). Defaults to "share_link". | share_link |
| dataset_content | No | CSV, Markdown, or raw text dataset. | |
| unnecessary_columns | No | Column names to prune from dataset payload. | |
| preferred_chart_type | No | Preferred chart type from supported visualization catalog. |