jqPlot DateAxis tickInterval not working

前端 未结 5 631
无人及你
无人及你 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 looked into the jqplot.dateAxisRenderer.js, and it looks like the reset function needs to be called in order for the this.tickInterval variable to get set. I vaguely recall that you can manually reset the renderer, but do note that tick interval is specified in the millisecond format (at least, I didn't catch any translation with my quick glance).

    I think this is just a bug.

    And on a side note, I commented out the only min.getUtcOffset() call in the function, since it was introducing unwanted "drift" (I want local time), and causes the graph to get chopped off on the left.

提交回复
热议问题