create_surface_3d
Creates interactive 3D surface charts from gridded data by pivoting long-format rows into a z-value grid for visualizing elevation or scalar fields.
Instructions
Interactive 3D surface (landscape) chart from gridded data (WebGL, orbit-able).
Long-format (x, y, z) rows are pivoted into a z-value grid and rendered as a continuous surface. Suited to elevation, density, or any scalar field sampled on a regular grid.
Ideal for: temperature/air-quality across city × month, terrain surfaces, optimization landscapes.
Returns: {filepath, title, rows}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Row dicts (one per (x, y) grid cell) | |
| theme | No | 'dark', 'light', or 'infographic' | dark |
| title | No | Chart title | |
| filename | No | Output filename (without .html) | surface_3d |
| x_column | Yes | Column forming the surface's X grid | |
| y_column | Yes | Column forming the surface's Y grid | |
| z_column | Yes | Column giving the surface height | |
| colorscale | No | Plotly colorscale name for height mapping | Viridis |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||