Accepted answer

don't use categories. in your case:

  1. set xaxis.type to datetime (not type: 'time'!). remove categories, or at least replace categories with tickpositions.

  2. if you have regular interval between points, use series.pointstart and series.pointinterval (or pointintervalunit). if your data may be irregular, then change your data format. currently you have data: [value, value, value]. instead use data: [ [timestamp, value], [timestamp, value], [timestamp, value] ]

  3. add xaxis.tickinterval option - for example 3600 * 1000, to determine where ticks should appear.

  4. add xaxis.maxpadding = 0 option - so last tick won't exceed extremes.

that's all. example with regular interval between points:

Related Query

More Query from same tag