Create a chart
create_visualizationCreate a chart from selected columns—histogram, box plot, scatter, bar, line, or pie—to visualize distributions, relationships, or category comparisons, with optional SVG export for reports.
Instructions
Creates a chart for the columns the user asked to see: histogram (column), box_plot (column, optional group_column), scatter (x_column, y_column), bar (x_column categories, optional y_column mean), line (x_column, y_column), pie (x_column categories, optional y_column sum). The user confirms the chart type and columns first. Optional save_to (.svg). Charts are kept for build_report.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bins | No | ||
| file | Yes | ||
| chart | Yes | ||
| title | No | ||
| column | No | ||
| save_to | No | ||
| x_column | No | ||
| y_column | No | ||
| overwrite | No | ||
| group_column | No | ||
| confirmation_token | No | Only after the user has confirmed the proposed choices: the confirmation_token from the previous response. |