ChartAxisTick.getHeight

Syntax

getHeight();

Description

The getHeight method returns label height.

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.getHeight());
console.log("Label width: " + axisTick.getWidth());

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

Label height: 43.92914094082653

Label width: 52.08750404236562

See also:

ChartAxisTick