修改自定义标签
function() {
var points = this.points;
var names = [];
for (var i = 0, len = points.length; i < len; i++) {
names.push(points[i].seriesName)
}
var a=0;
var b=1;
if(
this.points[a].value>this.points[b].value){
this.points[a].color = "red" ;
}
return this.value;
}