Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/85.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript jqplot双甜甜圈问题_Javascript_Jquery_Jqplot - Fatal编程技术网

Javascript jqplot双甜甜圈问题

Javascript jqplot双甜甜圈问题,javascript,jquery,jqplot,Javascript,Jquery,Jqplot,我正在使用jqplot绘制甜甜圈图表。我有一个双层甜甜圈,一个在另一个里面。外层甜甜圈中的每一片应在内层甜甜圈中分成n片。我已经看过这个例子了 $(document).ready(function(){ var s1 = [['a',6], ['b',8], ['c',14], ['d',20]]; var s2 = [['a', 8], ['b', 12], ['c', 6], ['d', 9]]; var plot3 = $.jqplot('chart3', [s1, s2],

我正在使用jqplot绘制甜甜圈图表。我有一个双层甜甜圈,一个在另一个里面。外层甜甜圈中的每一片应在内层甜甜圈中分成n片。我已经看过这个例子了

$(document).ready(function(){
  var s1 = [['a',6], ['b',8], ['c',14], ['d',20]];
  var s2 = [['a', 8], ['b', 12], ['c', 6], ['d', 9]];

  var plot3 = $.jqplot('chart3', [s1, s2], {
    seriesDefaults: {
      // make this a donut chart.
      renderer:$.jqplot.DonutRenderer,
      rendererOptions:{
        // Donut's can be cut into slices like pies.
        sliceMargin: 3,
        // Pies and donuts can start at any arbitrary angle.
        startAngle: -90,
        showDataLabels: true,
        // By default, data labels show the percentage of the donut/pie.
        // You can show the data 'value' or data 'label' instead.
        dataLabels: 'value'
      }
    }
  });
});
但是,它只会创建两个甜甜圈,一个在另一个里面。有可能得到它吗