kendo chart label position 图表的值标签位置及显示模板

1、不显示0

seriesDefaults: {
type: "column",
labels: {
visible: true,

position:''
background: "transparent",
color: "black",
template: kendo.template('#=filterZero(value)#')
}
},


function filterZero(value) {
if (value > 0) {
return value;
}
return "";
}

2、根据值大小来显示在外面还是里面

 position: function(e) { 
        if(e.percentage < 0.1)
            return "outsideEnd";
        else
          return "insideEnd";
      },
原文地址:https://www.cnblogs.com/taoshengyujiu/p/6233190.html