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

# CreateChartRequest

> TypeScript request type for the HoneyHive API

## Properties

### bucketing?

> `optional` **bucketing?**: `"minute"` | `"five_minute"` | `"hour"` | `"day"` | `"week"` | `"month"` | `"auto"`

#### Description

Time bucket granularity for aggregation

#### Default

```ts theme={null}
day
```

***

### dateRange?

> `optional` **dateRange?**: \{ `relative`: `string`; } | \{ `$gte`: `string` | `number`; `$lte`: `string` | `number`; }

#### Description

Time range to query

***

### description?

> `optional` **description?**: `string`

#### Description

Description of what the chart shows

***

### func?

> `optional` **func?**: `string`

#### Description

Aggregation function to apply (e.g. sum, avg, median, min, max)

***

### groupBy?

> `optional` **groupBy?**: `string` | `null`

#### Description

Field to group results by

***

### metric

> **metric**: `string`

#### Description

Name of the metric to visualize

***

### name

> **name**: `string`

#### Description

Display name for the chart

***

### owner\_id?

> `optional` **owner\_id?**: `string`

#### Description

ID of the user who owns this chart

***

### project\_id?

> `optional` **project\_id?**: `string`

#### Description

The unique identifier of the project the chart is created in. Omitting it is deprecated, and it becomes required in the next major version. Pass it with a data plane API key.

***

### query?

> `optional` **query?**: `object`\[]

#### field

> **field**: `string`

##### Description

Name of the field to filter on

#### operator

> **operator**: `string`

##### Description

Comparison operator (e.g. is, is not, contains, greater than, less than)

#### type

> **type**: `string`

##### Description

Data type of the field (e.g. string, number)

#### value

> **value**: `string` | `null`

##### Description

Value to compare against

#### Description

Filters to apply to the chart data


## Related topics

- [Charts Methods](/v2/sdk-reference/typescript/ref/charts/index.md)
- [Clients](/v2/changelog/clients.md)
- [Charts](/v2/cli-reference/ref/charts.md)


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