Chart Rendering (Chart.js)
chart_renderRender a chart to PNG from JSON: bar, line, pie, doughnut, scatter, radar, polarArea or bubble. Pass a full Chart.js config (config) or the shortcut type + labels + datasets [{label, data}] + title. Rendered with Chart.js in headless Chromium, no external requests. Params: config or type/labels/datasets, title, width and height (100 to 2000 px, default 800x500), background (CSS color, default white). Returns image_base64 (PNG). Price: $0.009 USDC per call, paid inside this MCP call via x402 (USDC on Base, Solana, Polygon or Arbitrum). x402 MCP clients such as @x402/mcp pay automatically. Free sample: call with the example input {"type":"bar","labels":["Q1","Q2","Q3","Q4"],"datasets":[{"label":"Revenue","data":[12,19,14,23]}],"title":"Revenue 2026 (kUSD)"}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | ||
| title | No | ||
| width | No | ||
| config | No | Full Chart.js configuration {type, data, options} | |
| height | No | ||
| labels | No | ||
| datasets | No | ||
| background | No | white |