API REFERENCE

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.

Definition

typescript
pinNode(id: string, x: number, y: number): Promise<NetworkGraphPinnedNode | null>
ArgumentsTypeRequired
idstringRequired
xnumberRequired
ynumberRequired

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