# updateSection

Funnel / pyramid-only — patch a section.

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

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

## Definition

```typescript
updateSection(idOrIndex: string | number, patch: Partial<FunnelSectionSpec>): Promise<boolean>
```

| Arguments | Type | Required |
| --- | --- | --- |
| `idOrIndex` | `string \| number` | Required |
| `patch` | `Partial<FunnelSectionSpec>` | Required |

Return type: `Promise<boolean>`. 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-updateSection)
- [sy-funnel-chart](https://chart.syidax.com/docs/components/pyramid.md#method-updateSection)
