validate_chart_code
Validates chart configuration and data metadata, then optionally opens the PyCafe link to preview the chart.
Instructions
Validate the chart code created by the user and optionally open the PyCafe link in a browser.
Returns:
ValidationResults object with status and dashboard details
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chart_config | Yes | A ChartPlan object with the chart configuration | |
| data_info | Yes | Metadata for the dataset to be used in the chart | |
| auto_open | No | Whether to automatically open the PyCafe link in a browser |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| message | Yes | ||
| python_code | Yes | ||
| pycafe_url | Yes | ||
| browser_opened | Yes |