seriesRendering: function(args){
for(var j=0; j < args.data.series.points.length; j++){
if(args.data.series.points[j].y > 19 && args.data.series.points[j].y < 29 ) {
args.data.series.points[j].marker = { dataLabel: { visible:true, template: 'template' }};
} else if(args.data.series.points[j].y > 9 && args.data.series.points[j].y < 18 ) {
args.data.series.points[j].marker = { dataLabel: { visible:true, template: 'template1' }};
} else {
args.data.series.points[j].marker = { dataLabel: { visible:true, template: 'template2' }};
}
}
}, |
//To customize the outer appearance of the datalabel
seriesRendering: function(args){
for(var j=0; j < args.data.series.points.length; j++){
if(args.data.series.points[j].y > 19 && args.data.series.points[j].y < 29 ) {
args.data.series.points[j].marker = { dataLabel: { visible:true, fill: 'aqua',border: { color: "green", width: 1}, shape: 'circle', offset: 20 }};
} else if(args.data.series.points[j].y > 9 && args.data.series.points[j].y < 18 ) {
args.data.series.points[j].marker = { dataLabel: { visible:true, fill: 'yellow',border: { color: "orange", width: 1}, shape: 'circle', offset: 20 } };
} else {
args.data.series.points[j].marker = { dataLabel: { visible:true, fill: 'lawngreen',border: { color: "red", width: 1}, shape: 'circle', offset: 20 } };
}
}
},
//To customize the text
displayTextRendering: function(args) {
args.data.text = Math.ceil(args.model.series[args.data.seriesIndex].points[args.data.pointIndex].y) + '%';
}, |