【发布时间】:2012-04-26 06:39:40
【问题描述】:
我正在使用 KendoUI 饼图,并且有很多空白区域。什么是最好的删除它的方法。见下图:
我的 java 脚本如下所示:
<div id="divGraph1" style="width:250px; height:250px;"/>
jQuery("#divGraph1").kendoChart({
legend:{
position: "bottom",
padding: 1,
margin: 1
},
seriesDefaults:{
labels:{
visible: true,
template: "#= kendo.format('{0:P}', percentage)#"
},
visible: true
},
tooltip:{
visible: true,
template: "#= category # - #= kendo.format('{0:P}', percentage)#"
},
seriesColors: [
"#004990", "#da7633", "#8a7967", "#8b0f04", "#ead766", "#676200", "78496a"
],
title: {
padding: 1,
margin: 1
},
chartArea: { margin: 1 },
plotArea: { margin: 1 },
series:[{
type: "pie",
data: [
{ category: "Facilities in IDN", value: 3 },
{ category: "Standalone Facilities", value: 4 }
]
}]
});
任何建议都将不胜感激。
【问题讨论】:
标签: javascript jquery asp.net telerik kendo-ui