# updateNeedle

Gauge-only — patch a needle.

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

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

## Definition

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

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

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

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

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

## Related charts

- [sy-gauge-chart](https://chart.syidax.com/docs/components/gauge.md#method-updateNeedle)
