Tool results

ToolResultChart

~200-line pure-SVG chart for tool results. No chart library — just bar, line, and area with auto-scaled axes, mount animation, and hover tooltips.

Sourcesrc/components/ai/tool-result-chart.tsx

Bar

Bars animate in from the baseline. Hover to highlight a single bar and surface the value tooltip.

Monthly API calls — bar
0125.0k250.0k375.0k500.0kNovDecJanFebMarApr

Line

Same data as above, rendered as a polyline with hoverable data points.

Monthly API calls — line
0125.0k250.0k375.0k500.0kNovDecJanFebMarApr

Area

Area chart layers a gradient fill under the line — use it when the trend matters more than individual values.

Monthly API calls — area
0125.0k250.0k375.0k500.0kNovDecJanFebMarApr184.2k221.8k268.4k302.1k348.9k412.6k