> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nebuly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Chart

Returns the data for a single chart by ID.\
Chart IDs are returned by the [Get Report Data](https://docs.nebuly.com/embedded-pages/reports/get-report-data.md) endpoint inside each report's `charts` array.

You need a **public API key** (`pk-...`) to authenticate. See [here](https://docs.nebuly.com/embedded-pages/quickstart.md) for more information about API keys.

# Path parameters

**chart\_id** `string` *required*

The UUID of the chart.

# Response

**chart** `object`

The chart data. The shape depends on the chart type, identified by the `type` field.

**Analytics chart**

**analytics chart properties**

**type** `string`

The chart visualization type. Possible values: `line_chart`, `distributed`,
`metric`, `horizontal_bar`, `vertical_bar`, `pie`, `scatter`.

**id** `string`

The unique identifier (UUID) of the chart.

**name** `string`

The display name of the chart.

**variables** `string[]`

The metric variable slugs visualized by the chart (e.g.
`["n_interactions"]`).

**visualization\_type** `string | null`

The sub-visualization type, if applicable (e.g. `"formula"` for metric
charts).

**display\_type** `string | null`

How values are displayed. Either `"total"` or `"percentage"`.

**x\_label\_values** `string[]`

The labels for the x-axis. For time series charts these are ISO 8601
datetime strings; for categorical charts these are category names.

**breakdown** `string | null`

The dimension used to split the chart into series, if any (e.g. `"topic"`,
`"language"`).

**granularity** `string | null`

The time granularity of the chart data. Possible values: `"hour"`, `"day"`,
`"week"`, `"month"`.

**time\_range** `object`

The effective time range used to compute this chart's data.

**properties**

**kind** `string`

The time range kind (see `timerange` query parameter for possible
values).

**start** `string`

ISO 8601 start datetime.

**end** `string`

ISO 8601 end datetime.

**data** `object[]`

The datasets for the chart. Each dataset corresponds to one series (e.g. one
breakdown value).

**properties**

**label** `string`

The series label (e.g. the breakdown value or the variable name).

**data** `object[]`

The data points for this series. Each entry corresponds to one x-axis
value.

**properties**

**x** `number`

The index position of this data point, corresponding to the entry at
the same index in `x_label_values`.

**y** `number | null`

The numeric value for this data point.

**user** `string | null`

The user identifier, present only for user-level breakdowns.

**Table chart**

**table chart properties**

**type** `string`

Always `"table"` for table charts.

**id** `string`

The unique identifier (UUID) of the chart.

**name** `string`

The display name of the chart.

**breakdowns** `string[]`

The dimension(s) used to group the table rows (e.g. `["topic"]`, `["topic", "language"]`).

**columns** `string[]`

The metric column names present in each row (e.g. `["n_interactions", "n_users"]`).

**rows** `object[]`

The table rows. Each row contains the breakdown dimension values and the metric values defined in `columns`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.