jqPlot DateAxis tickInterval not working

前端 未结 5 619
无人及你
无人及你 2020-12-01 18:47

I\'m trying to draw a chart with a single datapoint each month. I\'m sending this through to jqPlot as a single point on the first of each month:

$.jqplot(\'         


        
5条回答
  •  情深已故
    2020-12-01 19:39

    I found a solution! You need to specify the tickinterval as a javascript timestamp. So lets say you want 1 hour. That would be 1000*60*60 = 3600000 (javascript timestamps are in milliseconds).

    So you would write: tickInterval:'3600000',

    Works here.

提交回复
热议问题