# EChartOption Type documentation

## TypeScript declaration

### [EChartOption](<https://github.com/siemens/element/blob/main/projects/charts-ng/common/echarts.model.ts#L78-L84>)

**Kind:** interface

```
import type { EChartOption } from '@siemens/charts-ng/common';
```

```
interface EChartOption
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [dataZoom](<https://github.com/siemens/element/blob/main/projects/charts-ng/common/echarts.model.ts#L80-L80>) (optional) | `DataZoomComponentOption[]` |  |
| [grid](<https://github.com/siemens/element/blob/main/projects/charts-ng/common/echarts.model.ts#L81-L81>) (optional) | `GridComponentOption \| GridComponentOption[]` |  |
| [legend](<https://github.com/siemens/element/blob/main/projects/charts-ng/common/echarts.model.ts#L79-L79>) (optional) | `LegendComponentOption[]` |  |
| [series](<https://github.com/siemens/element/blob/main/projects/charts-ng/common/echarts.model.ts#L82-L82>) (optional) | `EChartSeries` |  |

#### Index Signatures

| Name | Type | Description |
| --- | --- | --- |
| [\[key: string\]](<https://github.com/siemens/element/blob/main/projects/charts-ng/common/echarts.model.ts#L83-L83>) | `any` |  |

### Types Documentation

### DataZoomComponentOption

**Kind:** type alias

```
import type { DataZoomComponentOption } from '@siemens/charts-ng';
```

```
type DataZoomComponentOption = SliderDataZoomOption | InsideDataZoomOption
```

### [EChartSeries](<https://github.com/siemens/element/blob/main/projects/charts-ng/common/echarts.model.ts#L47-L47>)

**Kind:** type alias

```
import type { EChartSeries } from '@siemens/charts-ng/common';
```

```
type EChartSeries = EChartSeriesOption[]
```

### GridComponentOption

**Kind:** interface

**Alias of:** `GridOption`

```
import type { GridComponentOption } from '@siemens/charts-ng';
```

```
interface GridComponentOption extends ComponentOption, ComponentOnCalendarOptionMixin, ComponentOnMatrixOptionMixin, BoxLayoutOptionMixin, ShadowOptionMixin
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| backgroundColor (optional) | `ZRColor` |  |
| borderColor (optional) | `ZRColor` |  |
| borderWidth (optional) | `number` |  |
| bottom (optional, inherited) | `PositionSizeOption` | Inherited from [BoxLayoutOptionMixin](<https://echarts.apache.org>) |
| calendarId (optional, inherited) | `OptionId` | Inherited from [ComponentOnCalendarOptionMixin](<https://echarts.apache.org>) |
| calendarIndex (optional, inherited) | `number` | Inherited from [ComponentOnCalendarOptionMixin](<https://echarts.apache.org>) |
| containLabel (optional, deprecated) | `boolean` | Deprecated: Use `grid.outerBounds` instead. Whether grid size contains axis labels. This approach estimates the size by sample labels. It works for most case but it does not strictly contain all labels in some cases. |
| coord (optional, inherited) | `CoordinateSystemDataCoord` | Inherited from [ComponentOption](<https://echarts.apache.org>) |
| coordinateSystem (optional, inherited) | `string` | Inherited from [ComponentOption](<https://echarts.apache.org>) |
| coordinateSystemUsage (optional, inherited) | `CoordinateSystemUsageOption` | Inherited from [ComponentOption](<https://echarts.apache.org>) |
| height (optional, inherited) | `PositionSizeOption` | Inherited from [BoxLayoutOptionMixin](<https://echarts.apache.org>) |
| id (optional, inherited) | `OptionId` | Inherited from [ComponentOption](<https://echarts.apache.org>) |
| left (optional, inherited) | `PositionSizeOption` | Inherited from [BoxLayoutOptionMixin](<https://echarts.apache.org>) |
| mainType (optional) | `"grid"` | Inherited from [ComponentOption](<https://echarts.apache.org>) |
| matrixId (optional, inherited) | `OptionId` | Inherited from [ComponentOnMatrixOptionMixin](<https://echarts.apache.org>) |
| matrixIndex (optional, inherited) | `number` | Inherited from [ComponentOnMatrixOptionMixin](<https://echarts.apache.org>) |
| name (optional, inherited) | `OptionName` | Inherited from [ComponentOption](<https://echarts.apache.org>) |
| outerBounds (optional) | `BoxLayoutOptionMixin` | {left, right, top, bottom, width, height}: Define a outerBounds rect, based on:<br><br>• the canvas by default.<br><br>• or the `dataToLayout` result if a `boxCoordinateSystem` is specified. |
| outerBoundsClampHeight (optional) | `string \| number` |  |
| outerBoundsClampWidth (optional) | `string \| number` | Available only when `outerBoundsMode` is not 'none'. Offer a constraint to not to shrink the grid rect causing smaller that width/height. A string means percent, like '30%', based on the original rect size determined by `grid.top/right/bottom/left/width/height`. |
| outerBoundsContain (optional) | `"auto" \| "all" \| NullUndefined$1 \| "axisLabel"` | • 'all': Default. Contains the cartesian rect and axis labels and axis name.<br><br>• 'axisLabel': Contains the cartesian rect and axis labels. This effect differs slightly from the previous option `containLabel` but more precise.<br><br>• 'auto'/null/undefined: Default. be 'axisLabel' if `containLabel:true`, otherwise 'all'. |
| outerBoundsMode (optional) | `"auto" \| "none" \| NullUndefined$1 \| "same"` | Define a constrains rect. Axis lines is firstly laid out based on the rect defined by `grid.left/right/top/bottom/width/height`. (for axis line alignment requirements between multiple grids) But if axisLabel and/or axisName overflow the outerBounds, shrink the layout to avoid that overflow.<br><br>Options:<br><br>• 'none': outerBounds is infinity.<br><br>• 'same': outerBounds is the same as the layout rect defined by `grid.left/right/top/bottom/width/height`.<br><br>• 'auto'/null/undefined: Default. Use `outerBounds`, or 'same' if `containLabel:true`.<br><br>Note: `grid.containLabel` is equivalent to `{outerBoundsMode: 'same', outerBoundsContain: 'axisLabel'}`. |
| right (optional, inherited) | `PositionSizeOption` | Inherited from [BoxLayoutOptionMixin](<https://echarts.apache.org>) |
| shadowBlur (optional, inherited) | `number` | Inherited from [ShadowOptionMixin](<https://echarts.apache.org>) |
| shadowColor (optional, inherited) | `string` | Inherited from [ShadowOptionMixin](<https://echarts.apache.org>) |
| shadowOffsetX (optional, inherited) | `number` | Inherited from [ShadowOptionMixin](<https://echarts.apache.org>) |
| shadowOffsetY (optional, inherited) | `number` | Inherited from [ShadowOptionMixin](<https://echarts.apache.org>) |
| show (optional) | `boolean` |  |
| tooltip (optional) | `any` |  |
| top (optional, inherited) | `PositionSizeOption` | Inherited from [BoxLayoutOptionMixin](<https://echarts.apache.org>) |
| type (optional, inherited) | `string` | Inherited from [ComponentOption](<https://echarts.apache.org>) |
| width (optional, inherited) | `PositionSizeOption` | Inherited from [BoxLayoutOptionMixin](<https://echarts.apache.org>) |
| z (optional, inherited) | `number` | Inherited from [ComponentOption](<https://echarts.apache.org>) |
| zlevel (optional, inherited) | `number` | Inherited from [ComponentOption](<https://echarts.apache.org>) |

### LegendComponentOption

**Kind:** type alias

```
import type { LegendComponentOption } from '@siemens/charts-ng';
```

```
type LegendComponentOption = LegendOption | ScrollableLegendOption
```

### [EChartSeriesOption](<https://github.com/siemens/element/blob/main/projects/charts-ng/common/echarts.model.ts#L33-L45>)

**Kind:** type alias

```
import type { EChartSeriesOption } from '@siemens/charts-ng/common';
```

```
type EChartSeriesOption = | BarSeriesOption
  | CandlestickSeriesOption
  | CustomSeriesOption
  | GaugeSeriesOption
  | HeatmapSeriesOption
  | LineSeriesOption
  | PieSeriesOption
  | ScatterSeriesOption
  | SankeySeriesOption
  | SunburstSeriesOption
  | never
```

### BarSeriesOption

**Kind:** type alias

**Alias of:** `BarSeriesOption$1`

```
import type { BarSeriesOption } from '@siemens/charts-ng';
```

```
type BarSeriesOption = BarSeriesOption & SeriesInjectedOption
```

### CandlestickSeriesOption

**Kind:** type alias

**Alias of:** `CandlestickSeriesOption$1`

```
import type { CandlestickSeriesOption } from '@siemens/charts-ng';
```

```
type CandlestickSeriesOption = CandlestickSeriesOption & SeriesInjectedOption
```

### CustomSeriesOption

**Kind:** type alias

**Alias of:** `CustomSeriesOption$1`

```
import type { CustomSeriesOption } from '@siemens/charts-ng';
```

```
type CustomSeriesOption = CustomSeriesOption & SeriesInjectedOption
```

### GaugeSeriesOption

**Kind:** type alias

**Alias of:** `GaugeSeriesOption$1`

```
import type { GaugeSeriesOption } from '@siemens/charts-ng';
```

```
type GaugeSeriesOption = GaugeSeriesOption & SeriesInjectedOption
```

### HeatmapSeriesOption

**Kind:** type alias

**Alias of:** `HeatmapSeriesOption$1`

```
import type { HeatmapSeriesOption } from '@siemens/charts-ng';
```

```
type HeatmapSeriesOption = HeatmapSeriesOption & SeriesInjectedOption
```

### LineSeriesOption

**Kind:** type alias

**Alias of:** `LineSeriesOption$1`

```
import type { LineSeriesOption } from '@siemens/charts-ng';
```

```
type LineSeriesOption = LineSeriesOption & SeriesInjectedOption
```

### PieSeriesOption

**Kind:** type alias

**Alias of:** `PieSeriesOption$1`

```
import type { PieSeriesOption } from '@siemens/charts-ng';
```

```
type PieSeriesOption = PieSeriesOption & SeriesInjectedOption
```

### ScatterSeriesOption

**Kind:** type alias

**Alias of:** `ScatterSeriesOption$1`

```
import type { ScatterSeriesOption } from '@siemens/charts-ng';
```

```
type ScatterSeriesOption = ScatterSeriesOption & SeriesInjectedOption
```

### SankeySeriesOption

**Kind:** type alias

**Alias of:** `SankeySeriesOption$1`

```
import type { SankeySeriesOption } from '@siemens/charts-ng';
```

```
type SankeySeriesOption = SankeySeriesOption & SeriesInjectedOption
```

### SunburstSeriesOption

**Kind:** type alias

**Alias of:** `SunburstSeriesOption$1`

```
import type { SunburstSeriesOption } from '@siemens/charts-ng';
```

```
type SunburstSeriesOption = SunburstSeriesOption & SeriesInjectedOption
```
