jquery - jqPlot hourly graph -


i'd jqplot similar this, http://www.jqplot.com/deploy/dist/examples/date-axes.html

however i'd hourly. i've got 2 weeks of data i'd displayed hourly , x-axis display this:

8am 9am 10am ... 11pm   12am 1am 2am 3am ...   |----june 1, 2012----| |----june 2, 2012----| 

is there way this?

the problem doing naive modification of example x-axis label becomes unreadable, when using small amounts of data.

axis overwrite

naive modification of code:

$(document).ready(function(){   var line1=[... data snipped...];   var plot2 = $.jqplot('chart2', [line1], {       title:'customized date axis',        axes:{         xaxis:{           renderer:$.jqplot.dateaxisrenderer,            tickoptions:{formatstring:'%b %#d, %#i %p'},           min:'june 1, 2012 8:00am',            tickinterval:'1 hour'         }       },       series:[{linewidth:4, markeroptions:{style:'square'}}]   }); });​ 

see jsfiddle live editing of issue. http://jsfiddle.net/aqftv/

i konw can change tickoptions formatstring, i'm unable find documentation on that.

i suggest in order improve readability of graph to rotate ticks example here.

as goes tick format can can find in docs under dateaxisrenderer plugin here.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -