# 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/ko/docs/methods/pinNode/

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

## 정의

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

| 인수 | 타입 | 필수 여부 |
| --- | --- | --- |
| `id` | `string` | 필수 |
| `x` | `number` | 필수 |
| `y` | `number` | 필수 |

반환 타입: `Promise<NetworkGraphPinnedNode | null>`. 요소 등록이 끝난 뒤 메서드를 호출하고 Promise 결과를 await로 기다리세요.

- [NetworkGraphPinnedNode](https://chart.syidax.com/ko/docs/types/NetworkGraphPinnedNode.md) — 타입 정의

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

## 관련 차트

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