Sencha Documentation

Config Options

 
dashSize : Number
The size of the dash marker. Default's 3.
The size of the dash marker. Default's 3.
 
length : Number
Offset axis position. Default's 0.
Offset axis position. Default's 0.
 
position : String
Where to set the axis. Available options are `left`, `bottom`, `right`, `top`. Default's `bottom`.
Where to set the axis. Available options are `left`, `bottom`, `right`, `top`. Default's `bottom`.
 
width : Number
Offset axis width. Default's 0.
Offset axis width. Default's 0.

Properties

 
Indicates whether to extend maximum beyond data's maximum to the nearest majorUnit.
Indicates whether to extend maximum beyond data's maximum to the nearest majorUnit.
 
Indicates whether to extend the minimum beyond data's minimum to the nearest majorUnit.
Indicates whether to extend the minimum beyond data's minimum to the nearest majorUnit.
 
alwaysShowZero : Boolean
If true, and the bounds are calculated automatically, either the minimum or maximum will be set to zero.
If true, and the bounds are calculated automatically, either the minimum or maximum will be set to zero.
 
Indicates whether to factor in the size of the labels when calculating a major unit.
Indicates whether to factor in the size of the labels when calculating a major unit.
 
majorUnit : Number
The spacing between major intervals on this axis.
The spacing between major intervals on this axis.
 
maximum : Number
The maximum value drawn by the axis. If not set explicitly, the axis maximum will be calculated automatically.
The maximum value drawn by the axis. If not set explicitly, the axis maximum will be calculated automatically.
 
minimum : Number
The minimum value drawn by the axis. If not set explicitly, the axis minimum will be calculated automatically.
The minimum value drawn by the axis. If not set explicitly, the axis minimum will be calculated automatically.
 
minorUnit : Number
The spacing between minor intervals on this axis.
The spacing between minor intervals on this axis.
 
position : String
Indicates the position of the axis relative to the chart
Indicates the position of the axis relative to the chart
 
roundMajorUnit : Boolean
Indicates whether to round the major unit.
Indicates whether to round the major unit.
 
scale : String
The scaling algorithm to use on this axis. May be "linear" or "logarithmic".
The scaling algorithm to use on this axis. May be "linear" or "logarithmic".
 
snapToUnits : Boolean
If true, the labels, ticks, gridlines, and other objects will snap to the nearest major or minor unit. If false, thei...
If true, the labels, ticks, gridlines, and other objects will snap to the nearest major or minor unit. If false, their position will be based on the minimum value.

Methods

 
drawAxis : Void
Renders the axis into the screen and updates it's position.
Renders the axis into the screen and updates it's position.
 
drawGrid : Void
Renders an horizontal and/or vertical grid into the Surface.
Renders an horizontal and/or vertical grid into the Surface.
 
drawLabels : Void
Renders the labels in the axes.
Renders the labels in the axes.