Wren AI offers powerful visualization capabilities that transform your data into insightful charts through a simple API interface. Generate beautiful, interactive Vega-Lite charts directly from natural language questions and SQL queries.
Endpoint Overview
POST /generate_vega_chart
: Generate a complete Vega-Lite specification with embedded data for visualization.
Chart Generation Workflow
The chart generation process follows a simple flow:
- Ask a question via
/generate_sql
to get SQL - Request a visualization via
/generate_vega_chart
with your question and SQL - Render the returned Vega specification in your application