What it does
Therender_chart tool lets the assistant create interactive charts inside the chat. When the assistant calls this tool, a Recharts-powered visualization is rendered inline — no external services or image generation needed.
Supported chart types
How it works
- You ask the assistant to visualize data (e.g., “chart this data”, “show me a bar chart”)
- The assistant calls
render_chartwith a chart specification - The tool validates the data and returns a
chartcode block - The UI renders it as an interactive Recharts visualization
Charts are rendered client-side in the web UI and desktop app. The gateway only validates the data and returns JSON — no images are generated server-side.
Chart specification
Cartesian charts (bar, line, area)
Pie charts
Handling missing data
Series values can benull to represent missing data points. The chart renderer treats null values as gaps — Recharts skips them gracefully in line and area charts, and omits them in bar charts.
Limits
Configuration
Therender_chart tool is always registered — no external dependencies required. The chart palette follows the brand color tokens defined in @spaceduck/brand.