scale tickInterval

Specifies an interval between axis ticks.

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

Major ticks are those that are accompanied by labels that display corresponding scale values. Use this property to divide the scale by major ticks in a specified interval. If this property is not set, major ticks are automatically arranged so that labels do not overlap each other.

In the case of a numeric scale, assign a numeric value to this property. If the scale is of the date-time type, assign one of the predefined string values. To set an interval to several days, hours, etc., assign an object with the corresponding field specified (days, hours or another field). Note that this object should contain only one of the fields described in this section.

NOTE: Setting a major tick interval is unavailable for a discrete scale.

NOTE: The specified tick interval can be changed internally if its value leads to label overlap. If you need to prohibit automatic tick arrangement in this situation, set the scale's useTicksAutoArrangement property to false.

Show Example:
jQuery

In this example, the tickInterval option is set to 'week'.

<div id="rangeSelectorContainer" style="height: 160px"></div>
$(function () {
    $("#rangeSelectorContainer").dxRangeSelector({
        scale: {
            startValue: new Date(2012, 2, 4),
            endValue: new Date(2012, 3, 10),
            tickInterval: 'week'
        }
    });
});

days

Specifies the time interval measured in days. Available only for an axis/scale displaying date-time values.

Type: Number

Show Example:
jQuery

In this example, the tickInterval option is set to 7 days.

<div id="rangeSelectorContainer" style="height: 160px"></div>
$(function () {
    $("#rangeSelectorContainer").dxRangeSelector({
        scale: {
            startValue: new Date(2012, 2, 5),
            endValue: new Date(2012, 3, 10),
            tickInterval: { days: 7 }
        }
    });
});

hours

Specifies the time interval measured in hours. Available only for an axis/scale displaying date-time values.

Type: Number

Show Example:
jQuery

In this example, the tickInterval option is set to 24 hours.

<div id="rangeSelectorContainer" style="height: 160px"></div>
$(function () {
    $("#rangeSelectorContainer").dxRangeSelector({
        scale: {
            startValue: new Date(2012, 2, 5),
            endValue: new Date(2012, 2, 10),
            tickInterval: { hours: 24 }
        }
    });
});

milliseconds

Specifies the time interval measured in milliseconds. Available only for an axis/scale displaying date-time values.

Type: Number

Show Example:
jQuery

In this example, the tickInterval option is set to 100 milliseconds.

<div id="rangeSelectorContainer" style="height: 160px"></div>
$(function () {
    $("#rangeSelectorContainer").dxRangeSelector({
        scale: {
            startValue: new Date(0),
            endValue: new Date(1000),
            tickInterval: { milliseconds: 100 }
        }
    });
});

minutes

Specifies the time interval measured in minutes. Available only for an axis/scale displaying date-time values.

Type: Number

Show Example:
jQuery

In this example, the tickInterval option is set to 10 minutes.

<div id="rangeSelectorContainer" style="height: 160px"></div>
$(function () {
    $("#rangeSelectorContainer").dxRangeSelector({
        scale: {
            startValue: new Date(2012, 2, 5, 12, 00),
            endValue: new Date(2012, 2, 5, 13, 00),
            tickInterval: { minutes: 10 }
        }
    });
});

months

Specifies the time interval measured in months. Available only for an axis/scale displaying date-time values.

Type: Number

Show Example:
jQuery

In this example, the tickInterval option is set to 3 months.

<div id="rangeSelectorContainer" style="height: 160px"></div>
$(function () {
    $("#rangeSelectorContainer").dxRangeSelector({
        scale: {
            startValue: new Date(2010, 0),
            endValue: new Date(2013, 0),
            tickInterval: { months: 3 }
        }
    });
});

quarters

Specifies the time interval measured in quarters. Available only for an axis/scale displaying date-time values.

Type: Number

seconds

Specifies the time interval measured in seconds. Available only for an axis/scale displaying date-time values.

Type: Number

Show Example:
jQuery

In this example, the tickInterval option is set to 30 seconds.

<div id="rangeSelectorContainer" style="height: 160px"></div>
$(function () {
    $("#rangeSelectorContainer").dxRangeSelector({
        scale: {
            startValue: new Date(2012, 2, 5, 12, 00),
            endValue: new Date(2012, 2, 5, 12, 10),
            tickInterval: { seconds: 30 }
        }
    });
});

weeks

Specifies the time interval measured in weeks. Available only for an axis/scale displaying date-time values.

Type: Number

years

Specifies the time interval measured in years. Available only for an axis/scale displaying date-time values.

Type: Number

Show Example:
jQuery

In this example, the tickInterval option is set to 5 years.

<div id="rangeSelectorContainer" style="height: 160px"></div>
$(function () {
    $("#rangeSelectorContainer").dxRangeSelector({
        scale: {
            startValue: new Date(1992, 0),
            endValue: new Date(2012, 0),
            tickInterval: { years: 5 }
        }
    });
});