使用AmCharts饼图时可以禁用 slice 拉出效果吗?
slice 拉出效果似乎默认存在。
最佳答案
是。要禁用拉出动画,只需将 pullOutDuration
设置为零即可。
或者,如果要完全禁用拉出,请将 pullOutRadius
设置为零。
var chart = AmCharts.makeChart("chartdiv", {
"type": "pie",
"pullOutDuration": 0,
"pullOutRadius": 0,
"dataProvider": [{
"country": "Lithuania",
"litres": 501.9
}, {
"country": "Czech Republic",
"litres": 301.9
}, {
"country": "Ireland",
"litres": 201.1
}, {
"country": "Germany",
"litres": 165.8
}, {
"country": "Australia",
"litres": 139.9
}, {
"country": "Austria",
"litres": 128.3
}, {
"country": "UK",
"litres": 99
}, {
"country": "Belgium",
"litres": 60
}, {
"country": "The Netherlands",
"litres": 50
}],
"valueField": "litres",
"titleField": "country"
});
<script src="http://www.amcharts.com/lib/3/amcharts.js"></script>
<script src="http://www.amcharts.com/lib/3/pie.js"></script>
<div id="chartdiv" style="width: 100%; height: 500px;"></div>
关于javascript - 使用AmCharts饼图时可以禁用切片拉出效果吗?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/33233133/