{"uid":"cap_-XKw1aw46dyyw_vzXSheZ","slug":"agentsvc-chart-render-ca8073f6","name":"AgentSvc Chart Render","description":"Render 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).","url":"https://agentsvc.io/api/v1/proxy/chart-render?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"type":{"enum":["bar","line","pie","doughnut","scatter","radar","polarArea","bubble"],"type":"string"},"title":{"type":"string"},"width":{"type":"integer","default":800,"maximum":2000,"minimum":100},"config":{"type":"object","description":"Full Chart.js configuration {type, data, options}"},"height":{"type":"integer","default":500,"maximum":2000,"minimum":100},"labels":{"type":"array","items":{"type":"string"}},"datasets":{"type":"array","items":{"type":"object","properties":{"data":{"type":"array"},"label":{"type":"string"}}}},"background":{"type":"string","default":"white"}}},"responseSchema":{"type":"json","example":{"data":{"width":800,"format":"png","height":450,"mime_type":"image/png","chart_type":"bar","size_bytes":9732,"image_base64":"iVBORw0KGgoAAAANSUhEUgAAAyAAAAHC…"},"success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.009","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"1.00","reviews":0,"stars":null,"state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.009/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.009","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.009","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jdtnfkF2ZaqBF-vuJ9Bm_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.009","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Renders a Chart.js configuration (bar, line, pie, doughnut, scatter, radar, polarArea, bubble) into a PNG image returned as base64.","exampleAgentPrompt":"Can you render a bar chart titled 'Monthly Revenue 2024' with months Jan through Jun on the x-axis and values [12000, 15000, 9800, 17200, 14300, 18900] as 'Revenue (USD)', at 1200 by 600 pixels with a white background, and give me the PNG?","exampleUseCases":[{"title":"Sales dashboard chart for email report","prompt":"Generate a line chart titled 'Q1 Sales Trend' with weeks Week 1 through Week 13 on the x-axis and two datasets — 'Product A' with values [500,520,480,610,590,640,700,680,720,750,800,780,830] and 'Product B' with values [300,310,290,340,360,380,400,390,420,410,450,440,460] — at 900 by 500 pixels, and return the PNG image."},{"title":"Survey results as pie chart","prompt":"Create a pie chart called 'Customer Satisfaction Survey' with labels ['Very Satisfied','Satisfied','Neutral','Dissatisfied','Very Dissatisfied'] and data values [45, 30, 12, 8, 5], 800 by 600 pixels, white background — I need the base64 PNG to paste into our presentation."},{"title":"Feature comparison radar chart","prompt":"Render a radar chart titled 'Product Comparison' comparing three products across the axes ['Price','Performance','Support','Ease of Use','Reliability'] with scores Product A [4,5,3,5,4], Product B [3,4,5,4,3], Product C [5,3,4,3,5], at 700 by 700 pixels."}],"resultDescription":"A JSON object containing the rendered chart as a base64-encoded PNG string, along with the width and height in pixels, file size in bytes, mime type (image/png), and the chart type that was rendered. The agent can decode the base64 string to embed or save the image.","failureModes":["Invalid chart type enum value returns validation error","Malformed or missing datasets causes rendering failure","Width or height outside 100–2000 range is rejected","Conflicting chart type between top-level 'type' and 'config.type' may produce unexpected output","Very large datasets or complex configs may timeout","Missing required data arrays produce an empty or broken chart image"],"whenToPreferThis":"Choose this endpoint when you need a server-side rendered chart image (PNG) from structured data or a Chart.js config, without requiring a browser, frontend framework, or chart library on the client. It is ideal for agents generating reports, emails, or documents that need embedded chart images. It supports all major Chart.js chart types and accepts both simplified label/dataset inputs and full Chart.js config objects.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":1,"lastUsedAt":"2026-10-26T04:08:18.852Z","lastSuccessfullyRanAt":"2026-10-26T04:08:18.852Z","lastHealthCheckAt":"2026-11-28T06:50:51.892Z","isFirstParty":false,"canonicalSlug":"agentsvc-chart-render-ca8073f6"}