Create Chart
create_chartGenerate charts from read-only SQL queries on Oracle, returning a PNG image and data preview. Supports bar, line, area, scatter, pie, and histogram.
Instructions
Runs a read-only SQL query and renders the result as a chart image (PNG). chart_type is one of: bar, line, area, scatter, pie, histogram. The first column is the x-axis or labels; numeric columns after it become series. Returns the image plus a data preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| title | No | ||
| x_label | No | ||
| y_label | No | ||
| chart_type | Yes |