{"uid":"cap_Iwa5RzOHjt2aCMS9whLbs","slug":"chart-splat-chart-rendering-api-89451c15","name":"Chart Splat Chart Rendering API","description":"A Chart.js-compatible charting API: POST a standard Chart.js `{ type, data, options }` — the same object you would hand to `new Chart()` — and get back a rendered PNG. Supports bar, line, pie, doughnut, radar, polar area, and candlestick/OHLC charts with the full set of Chart.js options. Pay per chart with x402 (USDC on Base) or use a Chart Splat API key — ideal for charts in agent reports, dashboards, and chat messages.","url":"https://api.chartsplat.com/chart?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"data":{"type":"object","required":["datasets"],"properties":{"labels":{"type":"array","items":{"type":"string"}},"datasets":{"type":"array","items":{"type":"object"},"description":"One or more Chart.js datasets."}},"description":"Chart.js `data` object: `labels` plus one or more `datasets` (each `{ label, data, ...styling }`)."},"type":{"enum":["bar","line","pie","doughnut","radar","polarArea","candlestick","ohlc"],"type":"string","description":"Chart.js chart type. `candlestick`/`ohlc` are financial charts whose datasets take OHLC points (`{ x, o, h, l, c }`)."},"options":{"type":"object","description":"Optional Chart.js `options` (title, legend, scales, colors, width, height, …)."}}},"responseSchema":null,"example":{"request":{"data":{"labels":["January","February","March","April","May","June"],"datasets":[{"data":[12000,15000,9000,18000,21000,17000],"label":"H1 Sales","borderColor":"rgba(75, 192, 192, 1)","borderWidth":1,"backgroundColor":"rgba(75, 192, 192, 0.8)"}]},"type":"bar","options":{"title":{"text":"H1 Sales","display":true},"width":800,"height":400,"responsive":false}},"response":{"_truncated":true,"_originalSize":19962}},"exampleRequest":{"data":{"labels":["January","February","March","April","May","June"],"datasets":[{"data":[12000,15000,9000,18000,21000,17000],"label":"H1 Sales","borderColor":"rgba(75, 192, 192, 1)","borderWidth":1,"backgroundColor":"rgba(75, 192, 192, 0.8)"}]},"type":"bar","options":{"title":{"text":"H1 Sales","display":true},"width":800,"height":400,"responsive":false}},"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.50","reviews":0,"stars":null,"state":"rated"},"availabilityStatus":"healthy","priceObserved":{"p10Cents":"0.5000","medianCents":"0.5000","p90Cents":"0.5000","minCents":"0.5000","maxCents":"0.5000","p95Cents":"0.5000","sampleCount":1,"varies":false,"failureChargeRate":null},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VwQq5n0LOme2ZY3y3rKtE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","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 object (type, data, options) into a PNG image, supporting bar, line, pie, doughnut, radar, polar area, and candlestick/OHLC chart types.","exampleAgentPrompt":"Generate a bar chart PNG showing monthly sales figures — labels January through June, with values 12000, 15000, 9000, 18000, 21000, and 17000 — give it the title 'H1 Sales' and make it 800 by 400 pixels.","exampleUseCases":null,"resultDescription":"A rendered PNG image of the specified chart, produced server-side from the supplied Chart.js type, data, and options. The agent receives binary PNG data suitable for embedding in reports, messages, or dashboards.","failureModes":["Invalid or unsupported chart type returns a 400 error","Malformed datasets array (missing required fields) causes a rendering error","OHLC/candlestick datasets missing x/o/h/l/c fields fail to render","Payment not provided or insufficient USDC balance returns a 402 Payment Required","Excessively large datasets or complex options may cause timeout or oversized response","Missing required 'datasets' field in data object returns validation error"],"whenToPreferThis":"Choose this endpoint when you need to produce a chart image (PNG) from structured data within an agent workflow, report, or chat message — especially when you already have a Chart.js-compatible data structure or need candlestick/OHLC financial charts. Prefer it over generic image generation services because it accepts structured Chart.js configs directly and supports financial chart types like candlestick and OHLC natively.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":2,"lastUsedAt":"2026-10-09T00:41:36.107Z","lastSuccessfullyRanAt":"2026-10-09T00:41:36.107Z","lastHealthCheckAt":"2026-10-13T01:07:06.051Z","isFirstParty":false,"canonicalSlug":"chart-splat-chart-rendering-api-89451c15"}