I have a multiline series graph, I have tried the following code for dataLabels so it shows a sensor when its above the alarm state
Code: Select all
dataLabels: {
enabled: true,
formatter: function() {
return (this.y>=maxAlarmThreshold)?this.y:"";
}},
I've also seen annotations is available.
My questions are
1) which is more performant, dataLabels or annotations
2) can I only render dataLabels when its in alarm, instead of rendering empty strings
3) how can I achieve the above code using annotations (just a few lines of code that considers the whole data set)
When I turn off dataLabels the performance is great, so its obviously something to do with enabling this