ChartAxisTick.getMeasures

Syntax

getMeasures(lastRendered: Boolean);

Parameters

lastRendered. Indicates whether to return label paddings and sizes specified at the last rendering. Available values:

Description

The getMeasures method returns object that contains paddings and sizes.

Example

Executing the example requires an instance of the ChartAxisTick class named axisTick (see ChartAxisTick Constructor). Get label size:

// Get size of the created axis label
console.log("Label height: " + axisTick.getMeasures().Height);
console.log("Label width: " + axisTick.getMeasures().Width);

As a result, label size is shown in the browser console:

Label height: 43.92914094082653

Label width: 52.08750404236562

See also:

ChartAxisTick