jqplot

2011-07-26 11 views
0

http://www.jqplot.comjqplot

my data

<script src="/Scripts/jquery.jqplot.js" type="text/javascript"></script> 
<script src="/Scripts/jqplot.barRenderer.js" type="text/javascript"></script> 
<script src="/Scripts/jqplot.categoryAxisRenderer.js" type="text/javascript"></script> 
<script src="/Scripts/jqplot.pointLabels.js" type="text/javascript"></script> 


// categories is the data on the top of the screenshot. 
// hours is the data on the bottom of screenshot 

    $.jqplot('timeOffGraph', hours, { 
        seriesDefaults: { 
         renderer: $.jqplot.BarRenderer, 
         rendererOptions: { fillToZero: true }, 
         pointLabels: { show: true } 
        }, 
        axes: { 
         xaxis: { 
          renderer: $.jqplot.CategoryAxisRenderer, 
          ticks: categories 
         }, 
         yaxis: { 
          tickOptions: { formatString: '%d' }, 
          autoscale: true, 
          min: 0, 
          max: 10000 
         } 
        } 
       }); 

"をプロットするデータが" I "がDataErrorを:プロットするデータを" 取得しない

答えて

3

私はあなたが1以上のアレイ$.jqplot('timeOffGraph', [hours], {

でそれを配置する必要があると思います