getMeasures(lastRendered: Boolean);
lastRendered. Indicates whether to return label paddings and sizes specified at the last rendering. Available values:
true. Return label paddings and sizes specified at the last rendering.
false. Return object that contains current values of the label top and bottom paddings, and also label width and height (default).
The getMeasures method returns object that contains paddings and sizes.
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: