# pinNode

Sankey / Chord / Network Graph — `{ node, link }` selection details, each nullable; `null` on other types. Network Graph — hold a node at a plot-local position (as a drag does); null on other types or unknown ids.

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

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

## Definition

```typescript
pinNode(id: string, x: number, y: number): Promise<NetworkGraphPinnedNode | null>
```

| Arguments | Type | Required |
| --- | --- | --- |
| `id` | `string` | Required |
| `x` | `number` | Required |
| `y` | `number` | Required |

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

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

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

## Related charts

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