# GridComponentOption Type documentation

## TypeScript declaration

### 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>) |
