我們已經使用amCharts實現了餅圖。但是,當發生向下鑽取時,裁剪的拉片標籤會被裁剪。我們如何解決這個問題?標籤在向下鑽取的餅圖(amCharts)中被裁剪
chart = AmCharts.makeChart("chart_1", {
"type": "pie",
"autoMargins": false,
"marginRight": 10,
"marginBottom": 10,
"dataProvider": generateChartData(),
"titleField": "SubTypeName",
"valueField": "Weight",
"outlineColor": "#FFFFFF",
"colorField": "Color",
"balloonText": "[[title]]<br><span style='font-size:14px'><b>[[value]]</b> ([[percents]]%)</span>",
"pulledField": "pulled",
"addClassNames": true,
"labelRadius": 3,
"radius": "40%",
"innerRadius": "30%",
"angle": 25,
"depth3D": 13,
"legend": {
"autoMargins": false,
"marginTop": 10,
"marginBottom": 10,
}
});
你能後的代碼添加到您的圖表? – martynasma
請注意,我已經刪除了代碼中的尾隨逗號。如果在現代瀏覽器中使用逗號,尾隨逗號會導致較舊IE中出現JS錯誤。 – martynasma