EJSC.Axis.major_ticks

See Also

Top  Previous  Next

 

Definition

 

object major_ticks = {

               thickness: 1,

               size: 4,

               color: undefined,

               opacity: 100,

               show: true,

               count: undefined,

               offset: 0,

               min_interval: undefined,

               max_interval: undefined

}

 

Description

 

This set of properties defines the characteristics of the major ticks for a given axis.

 

               thickness: the height or width (depending on axis orientation) of the tick mark

               size: the amount the tick mark extends from the axis border, may be specified as a number or a string containing % for a percentage

               color: the color of the tick marks, if left undefined this property inherits its value from EJSC.Axis.color

               opacity: the opacity of the tick marks

               show: specifies whether to draw the tick marks

               count: the number of tick marks to draw, if left undefined the axis will determine the proper amount of ticks to draw automatically based on the range of data available to the axis

                               Note: This property is not compatible with text labels (i.e. x axis values are "Gizmos", "Widgets", instead of numbers)

               offset: distance in pixels or percent from the axis border to begin drawing the tick marks,

               min_interval: Defines the minimum interval between major tick marks / labels.  This will override the auto generation of ticks to cap the interval to the value when defined.

               max_interval: Defines the maximum interval between major tick marks / labels.  This will override the auto generation of ticks to cap the interval to the value when defined.