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
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
Type definition