ChartQuery

Chart Render

GET
/v1/chart/render/{id}

Render a previously saved chart by ID. Public, no API key required. Supports URL overrides for templates (?data1=, ?labels=, ?title=…).

Parâmetros de caminho

id*string

The chart ID returned in the X-Chart-Render-URL header when saving a chart. Format: cq-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.

Parâmetros de consulta

title?string

Override the chart title.

labels?string

Override X-axis labels. Comma-separated.

data1?string

Override first dataset values. Comma-separated numbers. Use data2, data3… for additional datasets.

width?string

Override output width in pixels (50–4000).

height?string

Override output height in pixels (50–4000).

format?string

Override output format.

Default"png"
Value in"png""svg"
fields?string

Comma-separated list of response fields to return, with dot notation for nested fields (e.g. name,location.city).

is_async?boolean

Run the request as a background job: the API answers 202 with a job_id to poll on GET /v1/jobs/{id}.

Defaultfalse
soft_fail?boolean

Return HTTP 200 even when the request fails; the error is in the error field of the body.

Defaultfalse

Corpo da resposta

Successful response

response?file
Formatbinary
Example Request
curl -X GET 'https://api.chartquery.com/v1/chart/render/string'
Example Response
"string"