create_plot
Create interactive plots from loaded datasets with support for scatter, line, bar, and many more chart types. Generates both a PNG preview and interactive HTML output.
Instructions
Create an interactive plot from a loaded dataset.
Returns both a PNG preview (for inline chat display) and interactive HTML (as an embedded resource for full interactivity).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Column name for x-axis | |
| y | No | Column name for y-axis (optional for hist/kde) | |
| theme | No | Visual theme — None (default), 'dark', 'midnight' | |
| title | No | Plot title | |
| width | No | Plot width in pixels (default 700) | |
| height | No | Plot height in pixels (default 450) | |
| size_by | No | Column name to size points by (scatter only) | |
| color_by | No | Column name to color points/bars by | |
| group_by | No | Column name to create separate subplots by | |
| plot_type | Yes | Type — scatter, line, bar, barh, area, step, box, violin, hist, heatmap, hexbin, kde, contour, errorbars | |
| dataset_name | Yes | Name of the loaded dataset |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |