> ## 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 |
| - | - |
| <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={"theme":{"light":"github-light","dark":"github-dark-default"}}
type BarChart = Chart2D & object;
```

#### Type declaration

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

***

### BarData

```ts theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
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={"theme":{"light":"github-light","dark":"github-dark-default"}}
type BoxAndWhiskerChart = Chart2D & object;
```

#### Type declaration

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

***

### BoxAndWhiskerData

```ts theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
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={"theme":{"light":"github-light","dark":"github-dark-default"}}
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={"theme":{"light":"github-light","dark":"github-dark-default"}}
type ChartTypes = 
  | LineChart
  | ScatterChart
  | BarChart
  | PieChart
  | BoxAndWhiskerChart
  | SuperChart;
```

***

### LineChart

```ts theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
type LineChart = PointChart & object;
```

#### Type declaration

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

***

### PieChart

```ts theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
type PieChart = Chart & object;
```

#### Type declaration

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

***

### PieData

```ts theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
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={"theme":{"light":"github-light","dark":"github-dark-default"}}
type PointData = object;
```

#### Type declaration

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

***

### ScatterChart

```ts theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
type ScatterChart = PointChart & object;
```

#### Type declaration

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

***

### SuperChart

```ts theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
type SuperChart = Chart & object;
```

#### Type declaration

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

## Functions

### deserializeChart()

```ts theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
function deserializeChart(data: any): Chart
```

#### Parameters

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

#### Returns

`Chart`
