{"uid":"cap_mOqmSiCDqoE5Qlh-4wbeF","slug":"wdh-sh-chart-rendering-api-af3d52cb","name":"WDH.sh Chart Rendering API","description":"A Chart.js-compatible charting endpoint: POST a standard Chart.js config — the same `{ type, data, options }` you'd hand to `new Chart()` — and get back a rendered PNG. Backed by chartsplat.com, it renders every chart type chartsplat supports: bar, line, pie, doughnut, radar, polar area, and OHLC/candlestick (financial) charts, with the full set of Chart.js options (labels, multiple datasets, colors, titles, legends, scales). Made for embedding charts as images in agent reports, dashboards, Discord/Slack messages, and trading screenshots — anywhere you need a static image, not an interactive widget.","url":"https://charts.wdh.sh/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, …)."}}},"responseSchema":{"type":"json","example":{"note":"Response body is the raw chart image bytes (PNG or SVG per upstream).","contentType":"image/png"}},"example":null,"exampleRequest":null,"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.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":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_6gl2LpeKENq_mVMpDwZcd","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 Chart.js chart configurations (bar, line, pie, financial OHLC, etc.) into PNG or SVG image files via a proxy backed by chartsplat.","exampleAgentPrompt":"Generate a bar chart image with labels ['Jan','Feb','Mar'] and a dataset called 'Sales' with values [120, 95, 140] — I need it as a PNG.","exampleUseCases":[{"title":"Embed sales performance chart in email report","prompt":"Create a line chart showing our monthly revenue trend for the last six months and give me it as an image I can drop into an email."},{"title":"Visualize stock price movements in dashboard","prompt":"I need a candlestick chart for Apple's stock prices over the past week — render it as an SVG so I can include it in our trading dashboard."},{"title":"Generate pie chart breakdown for presentation","prompt":"Make me a pie chart image showing how our budget is split across product development, marketing, and operations — PNG format please."}],"resultDescription":"Raw image bytes (PNG or SVG) of the rendered chart, returned with content-type image/png or image/svg+xml. The image can be saved to disk, embedded in a document, or displayed directly.","failureModes":["Invalid chart type enum returns error — only bar, line, pie, doughnut, radar, polarArea, candlestick, ohlc are accepted","Missing required datasets field in data object causes validation error","Malformed OHLC dataset (missing x, o, h, l, c fields) for candlestick/ohlc chart type","Payment failure or insufficient USDC balance blocks the request (x402 payment required)","Upstream chartsplat service unavailable results in proxy error"],"whenToPreferThis":"Choose this endpoint when you need server-side chart rendering to a portable image (PNG/SVG) without running a browser or Chart.js locally. Ideal for agents generating reports, emails, or dashboards that embed chart images, especially when financial OHLC/candlestick charts are needed alongside standard Chart.js types.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":1,"lastUsedAt":"2026-07-17T22:11:12.053Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T18:34:42.079Z","isFirstParty":false,"canonicalSlug":"wdh-sh-chart-rendering-api-af3d52cb"}