Highcharts does a great job figuring out appropriate tick intervals.
However, I have a "duration" series (in ms), which I format e.g. like "3y 6M" or "1d 3h" or "3h 30min" for display. Because Highcharts is optimizing the tick intervals for the ms value (e.g. 10,000,000ms), I end up with awkward values such as [ 2h 46min 40s, 5h 33min 20s, 8h 20min ] rather than [ 3h, 6h, 9h ].
Can I get Highcharts to prefer multiples of certain values (e.g. 1000, 60 * 1000, 60 * 60 * 1000 etc)? I'd rather not have to calculate the exact tick interval myself (depends on chart size etc).
type: datetime
? – SualkcintickInterval
? I'm unclear as to how you DO want the interval to be; just rounded off or something? – SualkcintickInterval
(ugly as I'd need to analyze the data and handle resizing etc), I'd rather override the code that is used to calculate the tick intervals--if Highcharts lets me do that. – ejaintickInterval
value. i.e.tickInverval: $myCalculatedValue
. other than that, you might want to try adatetime
axis which allows you to set apointInvterval
such as 1 day or 1 hour, etc. – Sualkcin