ChartAxisTick.getOriginalSize

Syntax

getOriginalSize();

Description

The getOriginalSize method returns initial size of the label on drawing.

Example

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

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

As a result, initial size of the label is displayed in the console:

Initial height of the label: 0

Initial width of the label: 10

See also:

ChartAxisTick