Skip to content

charton API


charton API / @chart-on/ui / index / moveNode

Function: moveNode() ​

moveNode(chart, node, by): boolean

Defined in: ui/src/object-tree-model.ts:219

Move a node by rows in its list (negative is up). Drawings change their z-order within the pane (up is towards the top), panes their position below the main pane, and series move to the pane above or below. Returns whether anything moved.

Parameters ​

chart ​

Chart

node ​

ObjectTreeNode

by ​

number

Returns ​

boolean