I am using Birt line chart where I want to achieve something like this How to format series labels of a BIRT chart by script I want to show the points which are below marker line in red color just like this link has mentioned.
答案 0 :(得分:0)
修改fillColor
中的marker
。
代码段:
beforeGeneration: function(options)
{
var throughTargetPercent = this.getReportVariable("through_target_percent");
for(var i = 0 ; i < options.series.length ; i++){
var data = options.series[i].data;
var len = data.length;
for (var j=0; j < len; j++){
if(data[j].y < throughTargetPercent) {
data[j]= {
y: data[j].y,
marker: {
fillColor: "yellow"
}
}
}
}
}
},
希望有帮助!