clearselection

DemoClears the current node/s selection.

AttributeTypeInfo
graphid (optional)MixedThe id/index of the graph. The default is 0.

"mygraph" | 0 | 1 | ...

DemoDeselects a combination of nodes in the chart.

AttributeTypeInfo
graphid (optional)MixedThe id/index of the graph. The default is 0.

"mygraph" | 0 | 1 | ...

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

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

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

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

DemoReturns the current node/s selection.

AttributeTypeInfo
graphid (optional)MixedThe id/index of the graph. The default is 0.

"mygraph" | 0 | 1 | ...

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

AttributeTypeInfo
graphid (optional)MixedThe id/index of the graph. The default is 0.

"mygraph" | 0 | 1 | ...

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

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

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

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

toggleBooleanSets if the already selected nodes will be deselected.

true | false | 1 | 0

DemoSets the selection combination for the entire chart.

AttributeTypeInfo
graphid (optional)MixedThe id/index of the graph. The default is 0.

"mygraph" | 0 | 1 | ...

selectionArrayAn array of objects containing selection information.

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

DemoClicks a specified node.


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

closemodal

DemoCloses modal screen.


          
zingchart.exec('myid', 'closemodal');
        
On This Page