> ## Documentation Index
> Fetch the complete documentation index at: https://docs.e2b.dev/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={"theme":"css-variables"}
type BarChart = Chart2D & object;
```

#### Type declaration

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

***

### BarData

```ts theme={"theme":"css-variables"}
type BarData = object;
```

#### Type declaration

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

***

### BoxAndWhiskerChart

```ts theme={"theme":"css-variables"}
type BoxAndWhiskerChart = Chart2D & object;
```

#### Type declaration

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

***

### BoxAndWhiskerData

```ts theme={"theme":"css-variables"}
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={"theme":"css-variables"}
type Chart = object;
```

Represents a chart.

#### Type declaration

| Name | Type |
| - | - |
|  `elements` | `any[]` |
|  `title` | `string` |
|  `type` | `ChartType` |

***

### ChartTypes

```ts theme={"theme":"css-variables"}
type ChartTypes = 
  | LineChart
  | ScatterChart
  | BarChart
  | PieChart
  | BoxAndWhiskerChart
  | SuperChart;
```

***

### LineChart

```ts theme={"theme":"css-variables"}
type LineChart = PointChart & object;
```

#### Type declaration

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

***

### PieChart

```ts theme={"theme":"css-variables"}
type PieChart = Chart & object;
```

#### Type declaration

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

***

### PieData

```ts theme={"theme":"css-variables"}
type PieData = object;
```

#### Type declaration

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

***

### PointData

```ts theme={"theme":"css-variables"}
type PointData = object;
```

#### Type declaration

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

***

### ScatterChart

```ts theme={"theme":"css-variables"}
type ScatterChart = PointChart & object;
```

#### Type declaration

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

***

### SuperChart

```ts theme={"theme":"css-variables"}
type SuperChart = Chart & object;
```

#### Type declaration

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

## Functions

### deserializeChart()

```ts theme={"theme":"css-variables"}
function deserializeChart(data: any): Chart
```

#### Parameters

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

#### Returns

`Chart`
