Jquery jqPlot未使用日期打印
我尝试使用jqu plot绘制趋势折线图:Jquery jqPlot未使用日期打印,jquery,jqplot,Jquery,Jqplot,我尝试使用jqu plot绘制趋势折线图: $(document).ready(function () { var line1 = [['2012-01-01', 578.55], ['2012-01-02', 566.5], ['2012-01-03', 480.88], ['2012-01-04', 509.84]]; var plot1 = $.jqplot('TrendChart', [line1], { title: '
$(document).ready(function ()
{
var line1 = [['2012-01-01', 578.55], ['2012-01-02', 566.5], ['2012-01-03', 480.88], ['2012-01-04', 509.84]];
var plot1 = $.jqplot('TrendChart', [line1], {
title: 'Data Point Highlighting',
axes: {
xaxis: { renderer: $.jqplot.DateAxisRenderer, tickOptions: { formatString: '%b %#d'} },
yaxis: { tickOptions: { formatString: '$%.2f' } }
},
highlighter: { show: true, sizeAdjust: 7.5 },
cursor: { show: false }
});
});
页面加载了一个图形,但没有与相应值对应的线条。。。我做错了什么这几乎就是文档中的一个例子。别忘了包括jqplot.dateAxisRenderer.js插件你包括jqplot.dateAxisRenderer.js插件了吗?谢谢你把它作为一个回答发帖!:)