Skip to main content

Create a chart on a dataset

POST 

/v1/analytics/charts

Create a chart on top of a dataset.

Send a name, a chart_type (bar, line, pie, area, table, stacked_bar and the rest), the query_id of the dataset it reads, and a chart_config holding the dimensions, metrics, breakdownBy, filters and topN that shape the aggregation. query_id is required for every chart type except text.

Aggregation runs server-side at render time, so a chart stays correct as the underlying data changes. Requires the analytics:write scope.

Request

Responses

Successful Response