TreeMapItem.setVisible

Syntax

setVisible(visible: Boolean);

Parameters

visible. Parameter, that determines visibility of tree map item. If this parameter is set to true the item is shown, otherwise it is hidden.

Description

The setVisible method sets object visibility.

Example

To execute this example, the page must contain the TreeMap component named treeMap (see Example of Creating the TreeMap Component). Hide a chart item:

// Get chart item with the index 3
var item = treeMap.getSceneItems()[3];
// Hide chart item
item.setVisible(false);
// Redraw the item
item.draw();

After the example execution chart item is hidden:

See also:

TreeMapItem