> ## Documentation Index
> Fetch the complete documentation index at: https://e2b-mintlify-578de46b.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Charts

### ChartType

Chart types

#### Enumeration Members

| Enumeration Member                           | Value               |
| -------------------------------------------- | ------------------- |
| <a id="bar" /> `BAR`                         | `"bar"`             |
| <a id="box_and_whisker" /> `BOX_AND_WHISKER` | `"box_and_whisker"` |
| <a id="line" /> `LINE`                       | `"line"`            |
| <a id="pie" /> `PIE`                         | `"pie"`             |
| <a id="scatter" /> `SCATTER`                 | `"scatter"`         |
| <a id="superchart" /> `SUPERCHART`           | `"superchart"`      |
| <a id="unknown" /> `UNKNOWN`                 | `"unknown"`         |

***

### ScaleType

Ax scale types

#### Enumeration Members

| Enumeration Member                   | Value           |
| ------------------------------------ | --------------- |
| <a id="asinh" /> `ASINH`             | `"asinh"`       |
| <a id="categorical" /> `CATEGORICAL` | `"categorical"` |
| <a id="datetime" /> `DATETIME`       | `"datetime"`    |
| <a id="function" /> `FUNCTION`       | `"function"`    |
| <a id="functionlog" /> `FUNCTIONLOG` | `"functionlog"` |
| <a id="linear" /> `LINEAR`           | `"linear"`      |
| <a id="log" /> `LOG`                 | `"log"`         |
| <a id="logit" /> `LOGIT`             | `"logit"`       |
| <a id="symlog" /> `SYMLOG`           | `"symlog"`      |

## Type Aliases

### BarChart

```ts theme={null}
type BarChart = Chart2D & object;
```

#### Type declaration

| Name       | Type         |
| ---------- | ------------ |
| `elements` | `BarData`\[] |
| `type`     | `BAR`        |

***

### BarData

```ts theme={null}
type BarData = object;
```

#### Type declaration

| Name                     | Type     |
| ------------------------ | -------- |
| <a id="group" /> `group` | `string` |
| <a id="label" /> `label` | `string` |
| <a id="value" /> `value` | `string` |

***

### BoxAndWhiskerChart

```ts theme={null}
type BoxAndWhiskerChart = Chart2D & object;
```

#### Type declaration

| Name       | Type                   |
| ---------- | ---------------------- |
| `elements` | `BoxAndWhiskerData`\[] |
| `type`     | `BOX_AND_WHISKER`      |

***

### BoxAndWhiskerData

```ts theme={null}
type BoxAndWhiskerData = object;
```

#### Type declaration

| Name                                       | Type        |
| ------------------------------------------ | ----------- |
| <a id="first_quartile" /> `first_quartile` | `number`    |
| <a id="label-1" /> `label`                 | `string`    |
| <a id="max" /> `max`                       | `number`    |
| <a id="median" /> `median`                 | `number`    |
| <a id="min" /> `min`                       | `number`    |
| <a id="outliers" /> `outliers`             | `number`\[] |
| <a id="third_quartile" /> `third_quartile` | `number`    |

***

### Chart

```ts theme={null}
type Chart = object;
```

Represents a chart.

#### Type declaration

| Name                           | Type        |
| ------------------------------ | ----------- |
| <a id="elements" /> `elements` | `any`\[]    |
| <a id="title" /> `title`       | `string`    |
| <a id="type" /> `type`         | `ChartType` |

***

### ChartTypes

```ts theme={null}
type ChartTypes = 
  | LineChart
  | ScatterChart
  | BarChart
  | PieChart
  | BoxAndWhiskerChart
  | SuperChart;
```

***

### LineChart

```ts theme={null}
type LineChart = PointChart & object;
```

#### Type declaration

| Name   | Type   |
| ------ | ------ |
| `type` | `LINE` |

***

### PieChart

```ts theme={null}
type PieChart = Chart & object;
```

#### Type declaration

| Name       | Type         |
| ---------- | ------------ |
| `elements` | `PieData`\[] |
| `type`     | `PIE`        |

***

### PieData

```ts theme={null}
type PieData = object;
```

#### Type declaration

| Name                       | Type     |
| -------------------------- | -------- |
| <a id="angle" /> `angle`   | `number` |
| <a id="label-2" /> `label` | `string` |
| <a id="radius" /> `radius` | `number` |

***

### PointData

```ts theme={null}
type PointData = object;
```

#### Type declaration

| Name                       | Type                                             |
| -------------------------- | ------------------------------------------------ |
| <a id="label-3" /> `label` | `string`                                         |
| <a id="points" /> `points` | \[`number` \| `string`, `number` \| `string`]\[] |

***

### ScatterChart

```ts theme={null}
type ScatterChart = PointChart & object;
```

#### Type declaration

| Name   | Type      |
| ------ | --------- |
| `type` | `SCATTER` |

***

### SuperChart

```ts theme={null}
type SuperChart = Chart & object;
```

#### Type declaration

| Name       | Type         |
| ---------- | ------------ |
| `elements` | `Chart`\[]   |
| `type`     | `SUPERCHART` |

## Functions

### deserializeChart()

```ts theme={null}
function deserializeChart(data: any): Chart
```

#### Parameters

| Parameter | Type  |
| --------- | ----- |
| `data`    | `any` |

#### Returns

`Chart`
