# addSection

Funnel / pyramid-only — add a section (stage). Returns its index.

Canonical: https://chart.syidax.com/docs/methods/addSection/

<a id="definition"></a>

## Definition

```typescript
addSection(section: FunnelSectionSpec | number, opts?: { insertAt?: number }): Promise<number>
```

| Arguments | Type | Required |
| --- | --- | --- |
| `section` | `FunnelSectionSpec \| number` | Required |
| `opts` | `{ insertAt?: number }` | Optional |

Return type: `Promise<number>`. Call the method after element registration and await its Promise result.

- [FunnelSectionSpec](https://chart.syidax.com/docs/types/FunnelSectionSpec.md) — Type definition

<a id="related"></a>

## Related charts

- [sy-funnel-chart](https://chart.syidax.com/docs/components/funnel.md#method-addSection)
- [sy-funnel-chart](https://chart.syidax.com/docs/components/pyramid.md#method-addSection)
