It is currently Wed Oct 22, 2014 3:38 am Advanced search

how to display datetime with regular intervals on x category

Technical support, bug reports and more.

how to display datetime with regular intervals on x category

Postby Tanya Li » Thu Feb 23, 2012 7:46 pm

Hi guys,

Here I have this chart:
http://jsfiddle.net/Jx5n2/3117/

Datetime with irregular intervals, but in x category, only wanna display regular value like
1,2,3,4,5,6,7.... 23

as you can see now, x category shows whatever the datetime value is.

anyone any idea how to achieve that ?

thanks !!
Tanya
Tanya Li
 
Posts: 32
Joined: Tue Mar 15, 2011 8:52 pm

Re: how to display datetime with regular intervals on x cate

Postby jlbriggs » Thu Feb 23, 2012 8:10 pm

I would suggest simply not using a datetime axis if you don't want the axis to display the date/time.
fiddles: http://jsfiddle.net/jlbriggs/J9JLr/
jlbriggs
 
Posts: 1458
Joined: Tue Sep 21, 2010 4:33 pm

Re: how to display datetime with regular intervals on x cate

Postby Tanya Li » Fri Feb 24, 2012 12:35 pm

but the data I have is based on datetime.

jlbriggs wrote:I would suggest simply not using a datetime axis if you don't want the axis to display the date/time.
Tanya Li
 
Posts: 32
Joined: Tue Mar 15, 2011 8:52 pm

Re: how to display datetime with regular intervals on x cate

Postby Tanya Li » Fri Feb 24, 2012 1:00 pm

found the solution:

tickInterval: 3600 * 1000 // one hour interval

will solve the problem
Tanya Li
 
Posts: 32
Joined: Tue Mar 15, 2011 8:52 pm


Return to Highcharts Usage

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 5 guests