Skip to content
Fourohtwo

Render a chart to PNG from JSON

agentsvc.io/api/v1/proxy/chart-render

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 whit

BaseAnswering
POSThttps://agentsvc.io/api/v1/proxy/chart-render

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agentsvc.io/api/v1/proxy/chart-render", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"type":"bar","title":"Revenue 2026 (kUSD)","labels":["Q1","Q2","Q3","Q4"],"datasets":[{"data":[12,19,14,23],"label":"Revenue"}]}),
});
console.log(await res.json());

Example input

{
  "type": "bar",
  "title": "Revenue 2026 (kUSD)",
  "labels": [
    "Q1",
    "Q2",
    "Q3",
    "Q4"
  ],
  "datasets": [
    {
      "data": [
        12,
        19,
        14,
        23
      ],
      "label": "Revenue"
    }
  ]
}