如何将列表值传递给jqplot以获取堆积条形图

我正在尝试绘制一个堆积的条形图但是没有显示条形图。 不知道为什么? 让我解释一下我在做什么。 我已经在数据库的3列中存储了值,然后使用list(集合)我可以使用jsp在我的表上显示它。 现在我已经编写了代码来在同一个jsp页面上生成堆积条形图,但我无法将其显示为堆积条形图。 这是我的jsp

         January   

Report for January

Market Jan-01 Jan-02 Jan-03 Jan-04 Jan-05 Jan-06 Jan-07 Jan-08 Jan-09 Jan-10 Jan-11 Jan-12 Jan-13 Jan-14 Jan-15 Jan-16 Jan-17 Jan-18 Jan-19 Jan-20 Jan-21 Jan-22 Jan-23 Jan-24 Jan-25 Jan-26 Jan-27 Jan-28 Jan-29 Jan-30 Jan-31
AUK ${item.count}
${item.dataamount}
${item.result}
AUS ${item1.count}
${item1.dataamount}
${item1.result}
ADE ${item2.count}
${item2.dataamount}
${item2.result}
Ebay ${item3.count}
${item3.dataamount}
${item3.result}
Play ${item4.count}
${item4.dataamount}
${item4.result}
Nothing yet.
s1.push('${item.count}'); s2.push('${item.dataamount}'); s3.push('${item.result}'); $(document).ready(function(){ var s1 = []; var s2 = []; var s3 = []; var axisDates = ["Jan 1", "Jan 2", "Jan 3","Jan 4","Jan 5","Jan 6","Jan 7","Jan 8","Jan 9","Jan 10","Jan 11","Jan 12","Jan 13","Jan 14","Jan 15","Jan 16","Jan 17","Jan 18","Jan 19","Jan 20","Jan 21","Jan 22","Jan 23","Jan 24","Jan 25","Jan 26","Jan 27","Jan28","Jan 29","Jan 30","Jan 31"] plot3 = $.jqplot('chart3', [s1, s2, s3], { stackSeries: true, varyBarColor: true, captureRightClick: true, animate : !$.jqplot.use_excanvas, seriesDefaults : { renderer:$.jqplot.BarRenderer, rendererOptions: { barPadding : 20, barMargin : 25, barDirection : 'vertical', barWidth : 30, shadowOffset : 4, highlightMouseOver: true }, pointLabels: {show: true} }, axes: {xaxis: { renderer: $.jqplot.CategoryAxisRenderer, ticks: axisDates }, yaxis: {min:0, max: 2300 } }, legend: { show: true, location: 'e', placement: 'outside' } }); // Bind a listener to the "jqplotDataClick" event. Here, simply change // the text of the info3 element to show what series and ponit were // clicked along with the data for that point. $('#chart3').bind('jqplotDataClick', function (ev, seriesIndex, pointIndex, data) { $('#info3').html('series: '+seriesIndex+', point: '+pointIndex+', data: '+data); } ); });

 $(document).ready(function(){ var s1 = [3.42, 3.68, 3.64, 3.76, 3.75, 3.54,4.14,3.95, 3.84, 4.04, 4.29, 4.19,4.09,3.77, 4.82, 4.49, 4.42, 4.85,3.98, 3.97,4.19, 4.12, 4.09, 4.16, 4.38, 4.33, 4.43, 4.03, 4.25, 3.86, 4.16]; var s3 = [1200.48, 1604.94, 1431.20, 1335.72, 1266.45, 1308.25, 1698.32, 1464.18, 1461.53, 1502.08, 1369.72,1316.11, 1260.54, 1535.39, 1925.02, 1890.05, 1658.61, 1560.57,1574.59, 1682.91, 2025.93, 2019, 1645.09, 1801.57, 1812.67, 1818.51, 2130.70, 1803.06, 1926.22, 1630.69, 1570.69]; var s2 = [351, 436, 393, 355,338,370,410,371, 381, 372, 319,314,308,407,399, 421, 375, 322,396,424,483,490, 402, 433, 414,420,481,447,453,422,378]; var axisDates = ["Jan 1", "Jan 2", "Jan 3","Jan 4","Jan 5","Jan 6","Jan 7", "Jan 8","Jan 9","Jan 10","Jan 11","Jan 12","Jan 13","Jan 14","Jan 15","Jan 16","Jan 17","Jan 18","Jan 19","Jan 20","Jan 21","Jan 22","Jan 23","Jan 24","Jan 25","Jan 26","Jan 27","Jan28","Jan 29","Jan 30","Jan 31"] plot3 = $.jqplot('chart3', [s1, s2, s3], { stackSeries: true, varyBarColor: true, captureRightClick: true,