validate_chart_code
Validate user-created chart code by checking configuration against data metadata and optionally open the chart in PyCafe for 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 detailsInput 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 |