ChartAxisTick.DrawContext

Syntax

DrawContext: CanvasRenderingContext2D;

Description

The DrawContext property determines context of label draw area.

Comments

Use JSON or the setDrawContext method to set the property value, and the getDrawContext method to get the property value.

Context is an object that provides methods and properties for drawing items in the canvas.

Example

Executing the example requires an instance of the ChartAxisTick class named axisTick (see ChartAxisTick Constructor). Get font settings for label draw area context:

console.log("Settings of draw area context font: " + axisTick.getDrawContext().font);

After this settings of label draw area context font are displayed in the browser console:

Settings of draw area context font: 16px Calibri

See also:

ChartAxisTick