getPosition();
The getPosition method calculates item position.
This method returns an object of the following type:
{Width: 216, Height: 137, Left: 219, Top: 25}
To execute this example, the page must contain the TreeMap component named treeMap (see Example of Creating the TreeMap Component):
// Get chart item with the index 3 var item = treeMap.getSceneItems()[3]; //Get coordinates. item.getPosition();
After the example execution coordinates of the fourth item are displayed in the console.
See also: