グラフの描画にjqplotを使用しようとしています。そこで、日付ベースのグラフを取得するためにこの例を修正しました。
現在、私のコードは次のようになっています。
var plot1 = $.jqplot('chartdiv', [[["2010-12-25.14:19:47",1],
["2010-11-25.14:19:47",2],
["2010-10-25.14:19:47",3]]], {
title: 'mytitle',
series: [{
label: 'my label',
neighborThreshold: -1
}],
axes: {
xaxis: {
renderer: $.jqplot.DateAxisRenderer,
// min:'August 1, 2010 16:00:00',
tickInterval: '1 months',
tickOptions:{formatString:'%Y-%m-%d.%H:%M:%S'}
},
yaxis: {
tickOptions:{formatString:'$%.2f'}
}
},
cursor:{
show: true,
zoom:true,
showTooltip:false
}
});
しかし、次のエラーが表示されます。
this.proxy.getTime is not a function
(function(w){var l;w.fn.emptyForce=fun...))?([nAscboxXuidfegpEGP])/g})(jQuery);
日付形式を解析することにより、スクリプトに問題があるようです。しかし、なぜ?
助けてくれてありがとう。
//Update.. ups、この投稿を書いた後 (そして 1 日試行錯誤した後) すぐに理由を見つけました ;-) 。入力日付形式を解析する方法を定義しますか?