score:3

Accepted answer

Using min and max together with tickInterval and minorTickInterval will do the work.

// Start at 1890
min: Date.UTC(1890, 0, 1),

// End at 2010
max: Date.UTC(2010, 0, 1),

// Tick interval of 10 years
tickInterval: Date.UTC(2010, 0, 1) - Date.UTC(2000, 0, 1),

// Minor tick interval of 2
minorTickInterval: Date.UTC(2010, 0, 1) - Date.UTC(2008, 0, 1)

Example on jsfiddle enter image description here


Related Query

More Query from same tag