我與highcharts.js工作,我有兩個涉及到使我餅圖的問題:如何放大餅圖,並轉移到中心
如何放大這些餅圖和怎麼做我在窗格中間設置了兩個圖表?
$(function() {
var chart = new Highcharts.Chart({
chart: {
renderTo: 'container', type: 'pie'
},
title: {
text: 'Pesticide Residues On Domestic and Imported Foods'
},
subtitle: {
text: 'Percent of foods that exceed FDA or EPA tolerances',
},
plotOptions: {
pie: {
dataLabels: { enabled: false }
}
},
series: [{
name: 'Domestic foods',
size: 150,
x: 0,
center: [100, 100],
data: [
['Firefox', 44.2], ['IE7', 26.6], ['IE6', 20], ['Chrome', 3.1], ['Other', 5.4]
]
}, {
name: 'Imported foods',
size: 150,
center: [300, 100],
data: [
['Firefox', 44.2], ['IE7', 26.6], ['IE6', 20], ['Chrome', 3.1], ['Other', 5.4]
]
}]
});
});
真棒謝謝! – Kamandsam 2015-02-24 01:53:57