jqPlot DateAxis tickInterval not working

前端 未结 5 630
无人及你
无人及你 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:44

    tickInterval:'1 day' works. You can try:

    xaxis: {
            renderer: $.jqplot.DateAxisRenderer,
            rendererOptions: { tickRenderer: $.jqplot.CanvasAxisTickRenderer },
            tickOptions: { formatString: '%b' },
            tickInterval: '1 day'
           }
    

提交回复
热议问题