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

# Charts

### ChartType

Chart types

#### Enumeration Members

| Enumeration Member | Value               |
| ------------------ | ------------------- |
| `BAR`              | `"bar"`             |
| `BOX_AND_WHISKER`  | `"box_and_whisker"` |
| `LINE`             | `"line"`            |
| `PIE`              | `"pie"`             |
| `SCATTER`          | `"scatter"`         |
| `SUPERCHART`       | `"superchart"`      |
| `UNKNOWN`          | `"unknown"`         |

***

### ScaleType

Ax scale types

#### Enumeration Members

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

## Type Aliases

### BarChart

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

#### Type declaration

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

***

### BarData

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

#### Type declaration

| Name    | Type     |
| ------- | -------- |
| `group` | `string` |
| `label` | `string` |
| `value` | `string` |

***

### BoxAndWhiskerChart

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

#### Type declaration

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

***

### BoxAndWhiskerData

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

#### Type declaration

| Name             | Type        |
| ---------------- | ----------- |
| `first_quartile` | `number`    |
| `label`          | `string`    |
| `max`            | `number`    |
| `median`         | `number`    |
| `min`            | `number`    |
| `outliers`       | `number`\[] |
| `third_quartile` | `number`    |

***

### Chart

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

Represents a chart.

#### Type declaration

| Name       | Type        |
| ---------- | ----------- |
| `elements` | `any`\[]    |
| `title`    | `string`    |
| `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` | `ChartType.LINE` |

***

### PieChart

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

#### Type declaration

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

***

### PieData

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

#### Type declaration

| Name     | Type     |
| -------- | -------- |
| `angle`  | `number` |
| `label`  | `string` |
| `radius` | `number` |

***

### PointData

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

#### Type declaration

| Name     | Type                                             |
| -------- | ------------------------------------------------ |
| `label`  | `string`                                         |
| `points` | \[`number` \| `string`, `number` \| `string`]\[] |

***

### ScatterChart

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

#### Type declaration

| Name   | Type                |
| ------ | ------------------- |
| `type` | `ChartType.SCATTER` |

***

### SuperChart

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

#### Type declaration

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

## Functions

### deserializeChart()

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

#### Parameters

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

#### Returns

`Chart`
