TreeMapItem.Values

Syntax

Values: Object

Description

The Values property specifies values of tree map item settings.

Comments

Use JSON or the setValues method to set the property value, and the getValues method to get the property value.

Example

To execute this example, the page must contain the TreeMap component named treeMap (see Example of Creating the TreeMap Component). Change value of the item name setting:

// Get chart item with the index 3
var item = treeMap.getSceneItems()[3];
// Get values of chart item settings
var values = item.getValues();
// Edit value of item name setting
values.Name = "New text";
// Set new values for settings
item.setValues(values);
// Show tooltip
item.showTooltip();

As the result of the example execution value of the item name setting is changed:

See also:

TreeMapItem