# selectLinkAt

Sankey / Chord / Network Graph — pin a link by index; it keeps the accent after pointer leave. A negative or unknown index releases selection. `null` on other types.

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

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

## Definition

```typescript
selectLinkAt(index: number): Promise<SankeyLinkEventDetail | ChordLinkEventDetail | NetworkGraphLinkEventDetail | DendrogramHitDetail | null>
```

| Arguments | Type | Required |
| --- | --- | --- |
| `index` | `number` | Required |

Return type: `Promise<SankeyLinkEventDetail | ChordLinkEventDetail | NetworkGraphLinkEventDetail | DendrogramHitDetail | null>`. Call the method after element registration and await its Promise result.

- [SankeyLinkEventDetail](https://chart.syidax.com/docs/types/SankeyLinkEventDetail.md) — Type definition
- [ChordLinkEventDetail](https://chart.syidax.com/docs/types/ChordLinkEventDetail.md) — Type definition
- [NetworkGraphLinkEventDetail](https://chart.syidax.com/docs/types/NetworkGraphLinkEventDetail.md) — Type definition
- [DendrogramHitDetail](https://chart.syidax.com/docs/types/DendrogramHitDetail.md) — Type definition

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

## Related charts

- [sy-dendrogram](https://chart.syidax.com/docs/components/dendrogram.md#method-selectLinkAt)
- [sy-sankey](https://chart.syidax.com/docs/components/sankey.md#method-selectLinkAt)
- [sy-chord](https://chart.syidax.com/docs/components/chord.md#method-selectLinkAt)
- [sy-network-graph](https://chart.syidax.com/docs/components/network-graph.md#method-selectLinkAt)
