Javascript jqplot双甜甜圈问题
我正在使用jqplot绘制甜甜圈图表。我有一个双层甜甜圈,一个在另一个里面。外层甜甜圈中的每一片应在内层甜甜圈中分成n片。我已经看过这个例子了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],
$(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'
}
}
});
});
但是,它只会创建两个甜甜圈,一个在另一个里面。有可能得到它吗