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