UnifyAPI
← Back to catalog

chart.create

mock data$0.002 / call

Create Chart Image

⚡ ACTION: Generate a chart image (PNG) from data — bar, line, pie, doughnut, radar, scatter. Returns a permanent image URL. Combine with data tools (climate.co2, census.population, finance.exchange_rates) to visualize any dataset. Powered by QuickChart (Chart.js).

Developer Toolsprovider: Chart#chart#developer

Input schema

typerequired

Chart type: bar, line, pie, doughnut, radar, scatter, horizontalBar

string
title

Chart title displayed at top

string
width

Image width in pixels (100-1000, default 500)

integer
height

Image height in pixels (100-1000, default 300)

integer
labelsrequired

X-axis labels (e.g. ["Q1", "Q2", "Q3", "Q4"])

array
datasetsrequired

One or more datasets to plot

array

Call via REST

curl -X POST https://unifyapi.pro/api/call/chart.create \
  -H "Authorization: Bearer uak_live_..." \
  -H "Content-Type: application/json" \
  -d '{"type":"<type>","title":"<title>","width":0,"height":0,"labels":"<labels>","datasets":"<datasets>"}'

Try it

Paste a UnifyAPI key (create one in the dashboard) and run a real call.