我正在尝试按照页面http://www.jqplot.com/deploy/dist/examples/bar-charts.html,示例3中的示例创建堆积条形图 . 但是,我的系列数据没有堆叠 . 而是仅绘制第一个系列 . 我的第二和第三系列的值小于1,而第一系列的平均值大约为10,所以我认为jqplot可能忽略其他系列是无关紧要的 .

为了确认这是否是这种情况,我从那里的例子中复制粘贴(没有鼠标点击花哨的东西),并且仍然是相同的结果,图表只显示一个系列 .

var s1 = [2, 6, 7, 10];
    var s2 = [7, 5, 3, 4];
    var s3 = [14, 9, 3, 8];
    var plot3 = $.jqplot('vmstats_0', [s1, s2, s3], {
        // Tell the plot to stack the bars.
        stackSeries: true,
        captureRightClick: true,
        seriesDefaults:{
          renderer:$.jqplot.BarRenderer,
          rendererOptions: {
              // Put a 30 pixel margin between bars.
              barMargin: 30,
              // Highlight bars when mouse button pressed.
              // Disables default highlighting on mouse over.
              highlightMouseDown: true   
          },
          pointLabels: {show: true}
        },
        axes: {
          xaxis: {
              renderer: $.jqplot.CategoryAxisRenderer
          },
          yaxis: {
            // Don't pad out the bottom of the data range.  By default,
            // axes scaled as if data extended 10% above and below the
            // actual range to prevent data points right on grid boundaries.
            // Don't want to do that here.
            padMin: 0
          }
        },
        legend: {
          show: true,
          location: 'e',
          placement: 'outside'
        }     
      });

我需要调整哪些建议才能使系列真正堆叠?