ParentItem: PP.Ui.BubbleTreeItem | PP.Ui.TreeMapItem
The ParentItem property determines parent of the current element of hierarchical chart.
Use JSON or the setParentItem method to set the property value, and the getParentItem method to get the property value.
To execute the example the HTML page must contain the BubbleTree component named «bubbleTree» (see «The BubbleTree component creation example» ). Get an element by ID, get parent for this element, change orientation of parent element label and redraw it:
// Get data model var model = bubbleTree.getModel() // Get an element by ID var item = model.getItem("EU"); // Get parent element var parent = item.getParentItem(); // Change orientation of parent element label parent.setLabelSide(PP.Ui.BubbleTreeAlignment.Top) // Redraw element parent.draw()
After executing the example orientation of parent label changes:
See also: