Line Chart — Weekly Metrics
datachartpng

Line Chart — Weekly Metrics

Embed a static chart PNG in emails, Slack, or reports. Chart.js rendered server-side.

Request body
{
  "type": "chart",
  "content": "{\"type\":\"line\",\"title\":\"Weekly Active Users\",\"labels\":[\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\",\"Sun\"],\"datasets\":[{\"label\":\"This week\",\"data\":[1840,2120,2380,2510,2890,2640,3120],\"color\":\"#00e676\"},{\"label\":\"Last week\",\"data\":[1620,1780,1950,2010,2260,2080,2340],\"color\":\"#52525b\"}]}",
  "options": {
    "format": "png",
    "dimensions": {
      "width": 960,
      "height": 540
    },
    "scale": 2
  }
}

Code example

curl -X POST https://renderfy.io/api/v1/render \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "type": "chart",
  "content": "{\"type\":\"line\",\"title\":\"Weekly Active Users\",\"labels\":[\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\",\"Sun\"],\"datasets\":[{\"label\":\"This week\",\"data\":[1840,2120,2380,2510,2890,2640,3120],\"color\":\"#00e676\"},{\"label\":\"Last week\",\"data\":[1620,1780,1950,2010,2260,2080,2340],\"color\":\"#52525b\"}]}",
  "options": {
    "format": "png",
    "dimensions": {
      "width": 960,
      "height": 540
    },
    "scale": 2
  }
}' \
  --output render.png
Fork this template to my account →

One click. Free tier includes 1 saved template.

More data templates