publish_chart
Publish a chart via freeform Plotly spec. Use create_chart_from_spec instead unless you need a Plotly feature the Builder spec doesn't cover (custom shapes, multi-axis layouts, animation frames). Requires AUTARIO_API_KEY. Brand attribution + insight verification gate apply identically to create_chart_from_spec.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Chart title. Include time range in parentheses, use pipe | as separator (e.g. "GDP Growth | Major Economies (2000-2024)") | |
| insight | No | 2-3 sentence data insight with specific numbers from the queried data. Must use verified numbers from query_dataset results, never from training data | |
| narration | No | Longer description of the analysis methodology and context | |
| dataset_ids | Yes | Array of dataset UUIDs that this chart uses. Autario pulls real data from these datasets to ensure no hallucinated values | |
| plotly_spec | No | Plotly specification with traces array and layout object. Traces use x_col/y_col for column references and group_by/group_value for filtering (e.g. {"traces": [{"x_col": "year", "y_col": "value", "group_by": "country", "group_value": "USA"}], "layout": {}}) |