Selection

clearselection

Clears the current node's selection.

AttributeTypeInfo
graphid (optional)Mixed

The id/index of the graph. The default is 0.

"mygraph" | 0 | 1 | ...

https://app.zingsoft.com/demos/embed/4SZBXD49
https://app.zingsoft.com/demos/embed/4SZBXD49

Deselects a combination of nodes in the chart.

AttributeTypeInfo
graphid (optional)Mixed

The id/index of the graph. The default is 0.

"mygraph" | 0 | 1 | ...

nodeindexMixed

Sets the nodes that will be included in the selection collection.

"1" | "2-4" | [1, 3, 4] | ...

plotindexMixed

Sets the plots that will be included in the selection collection.

"1" | "2-4" | [1, 3, 4] | ...

https://app.zingsoft.com/demos/embed/50IPFZ6A
https://app.zingsoft.com/demos/embed/50IPFZ6A

Returns the current node's selection.

AttributeTypeInfo
graphid (optional)Mixed

The id/index of the graph. The default is 0.

"mygraph" | 0 | 1 | ...

https://app.zingsoft.com/demos/embed/CK790BLB
https://app.zingsoft.com/demos/embed/CK790BLB

Sets a combination of nodes in the chart as selected. If toggle is true then the nodes already selected will be deselected.

AttributeTypeInfo
graphid (optional)Mixed

The id/index of the graph. The default is 0.

"mygraph" | 0 | 1 | ...

nodeindexMixed

Sets the nodes that will be included in the selection collection.

"1" | "2-4" | [1, 3, 4] | ...

plotindexMixed

Sets the plots that will be included in the selection collection.

"1" | "2-4" | [1, 3, 4] | ...

toggleBoolean

Sets if the already selected nodes will be deselected.

true | false | 1 | 0

https://app.zingsoft.com/demos/embed/IMCGLVHA
https://app.zingsoft.com/demos/embed/IMCGLVHA

Sets the selection combination for the entire chart.

AttributeTypeInfo
graphid (optional)Mixed

The id/index of the graph. The default is 0.

"mygraph" | 0 | 1 | ...

selectionArray

An array of objects containing selection information.

[[...], [...]]

https://app.zingsoft.com/demos/embed/BJ7KJDXD
https://app.zingsoft.com/demos/embed/BJ7KJDXD

clicknode

Clicks a specified node.

zingchart.exec('myid', 'clicknode');

closemodal

https://app.zingsoft.com/demos/embed/94AOFD1M
https://app.zingsoft.com/demos/embed/94AOFD1M

Closes modal screen.

zingchart.exec('myid', 'closemodal');