ChartEditMode.DomNode

Syntax

DomNode: PP.Ui.Canvas;

Description

The DomNode property determines chart draw area in edit mode.

Comments

Use JSON to set the property value and the getDomNode method to get the property value.

Example

Executing the example requires that the HTML page contains the Chart component named chart (see Example of Creating the Chart Component). Get size of the chart draw area in edit mode:

// Get size of the chart draw area in edit mode
console.log("Height: " + chart.getToolTip().getDomNode().height);
console.log("Width: " + chart.getToolTip().getDomNode().width);

After this the console shows size of the chart draw area in edit mode:

Height: 500

Width: 600

See also:

ChartEditMode