tickInterval

Specifies an interval between axis ticks/grid lines.

Default Value: undefined
Accepted Values: number|object|'millisecond' | 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'

Use this option to divide the scale by ticks in a specified interval one from another. If this option is not set, ticks are automatically arranged so that their labels do not overlap each other.

In case of a numeric axis, assign a numeric value to this option.

If the axis is of the date-time type, assign one of the predefined string values or an object to this option. The object's fields specify the number of days, hours, etc.

When you use a logarithmic axis, ticks are generated on a base of powers. For example, assume that the logarithm base is 10. Then, if the tick interval is 1, ticks are generated at 0.01, 0.1, 1, 10, 100, 1000, 10000, etc. If the tick interval is 2, ticks are generated at 0.1, 10, 1000, etc.

NOTE: The specified tick interval can be changed internally if its value leads to label overlapping. If you need to prohibit an automatic tick arrangement in this situation, specify the argumentAxis | label | overlappingBehavior | mode option.

To set the tickInterval option for several axes at once, use the commonAxisSettings configuration object. To set this option for an individual axis, use the argumentAxis or valueAxis configuration object.

Show Example:
jQuery

In the following example, the argument axis tick interval is set to 2 days.


                                    

                                    

days

Specifies the count in days between ticks/grid lines on a date-time axis.

Type: Number

hours

Specifies the count in hours between ticks/grid lines on a date-time axis.

Type: Number

milliseconds

Specifies the count in milliseconds between ticks/grid lines on a date-time axis.

Type: Number

minutes

Specifies the count in minutes between ticks/grid lines on a date-time axis.

Type: Number

months

Specifies the count in months between ticks/grid lines on a date-time axis.

Type: Number

quarters

Specifies the count in quarters between ticks/grid lines on a date-time axis.

Type: Number

seconds

Specifies the count in seconds between ticks/grid lines on a date-time axis.

Type: Number

years

Specifies the count in years between ticks/grid lines on a date-time axis.

Type: Number