View & Edit Visualization Script
Access and modify the underlying query and configuration in Tepun AI Report Builder.
Viewing the Script
- Open the Report — Navigate to the visualization
- Click View Script — Find in toolbar
- Review Components:
- SQL Query: Data retrieval SELECT statement
- Chart Config: Visualization settings
- Filter Logic: Applied filter conditions
Editing the Script
- Click Edit Script — Enable editing
- Modify SQL:
- Add columns:
SELECT col_a, col_b, new_col - Add calculations:
SUM(amount) as total - Add conditions:
WHERE status = 'active' - Add grouping:
GROUP BY category
- Add columns:
- Modify Chart Config — Change axis settings, colors
- Validate — Check for errors
- Save Script — Apply changes
Power User Workflow: Use Ask AI to generate the initial visualization, then refine with script editing at report.tepun.com.
Learn about refreshing and scheduling visualizations.