Accepted answer

for this no need to go with categories or the datetime type of x-axis just change the data

in this format

data: [,[x1,y1],[x2,y2],[x3,y3],[x4,y4],[x5,y5]]


 data: [[1750,106], [1800,107], [1850,111], [1900,133], [1950,221], [1999,767], [2050,1766]]

updated your js fiddle please check

hope this will be useful


According to documentation, minPadding/maxPadding doesn't work with categories. So You should use i.e datetime xAxis and define correct tickInterval / pointInterval.

Related Query

More Query from same tag