kitegraph
API access is included on the Professional and Business plans

Transform a series

Apply a rolling average, rescale, index, or accumulate a series.

A transform reshapes a series without changing its data. It is keyed by the resolved series name, which you read from the chart. Full reference: Transforming a series.

1. Create the chart

curl -X POST "https://api.kitegraph.com/v1/charts" \ -H "Authorization: Bearer kg_live_…" -H "Content-Type: application/json" \ -d '{ "kind": "line", "series": [{ "statistic": 4821 }] }' → { "id": "9f2c…", … }

2. Read the series name

The transform key is the resolved name, not the statistic title. Read it from the chart's series array.

curl "https://api.kitegraph.com/v1/charts/9f2c…" -H "Authorization: Bearer kg_live_…" → { "series": [ "United States" ], … }

3. Apply the transform

A 12-period rolling sum, keyed by that name:

curl -X PATCH "https://api.kitegraph.com/v1/charts/9f2c…" \ -H "Authorization: Bearer kg_live_…" -H "Content-Type: application/json" \ -d '{ "meta": { "seriesTransform": { "United States": { "ops": [{ "fn": "rollsum", "args": [12] }] } } } }'

Transforms are non-destructive: GET /v1/charts/9f2c…/export/csv returns the original series and the transformed one side by side.

Transform a series — Kitegraph docs