这是饼图的设置:
function createChart(chartDataSource) {
$("#chart").kendoChart({
theme:$(document).data("kendoSkin") || "black",
title:{
text:"Efficiency"
},
legend:{
position:"bottom"
},
dataSource:chartDataSource,
series:[
{
type:"pie",
field:"val",
categoryField:"status"
}
],
tooltip:{
visible:true,
template:"${category} - #= kendo.format('{0:P}', percentage)#"
}
});
CSS 样式:
#chart {
width: 50%;
height: 50%;
}
我知道Highcharts有一个名为reflow
的布尔类型属性(在StackOverflow上有一个关于reflow的例子),它正好符合我的需求。
但我不确定kendoUI图表是否有相同的reflow设置,或者我是否应该尝试调整CSS样式。如果选择使用CSS,如何进行此类设置?
谢谢。