c.addText(575, 62, "Alarm - Latest Value Exceeded Threshold",
"Arial Bold Italic", 10, 0xffffff, Chart.TopRight).setBackground(0xdd0000);
}
// Fill the region above the threshold as semi-transparent red (80ff8888)
c.addInterLineLayer(layer.getLine(1), m.getLine(), 0x80ff8888, Chart.Transparent);
c.addInterLineLayer(layer.getLine(2), m.getLine(), 0x80ff8888, Chart.Transparent);
}
// Set the chart image to the ChartViewer
chartViewer1.setChart(c);