validate_chart_code
Validate chart code structure and confirm its correctness. Optionally open the chart in PyCafe for live preview.
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 |
|---|---|---|---|
| auto_open | No | Whether to automatically open the PyCafe link in a browser | |
| data_info | Yes | Metadata for the dataset to be used in the chart | |
| chart_config | Yes | A ChartPlan object with the chart configuration |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| message | Yes | ||
| pycafe_url | Yes | ||
| python_code | Yes | ||
| browser_opened | Yes |