var plot;
var data = [${data}];
var options = {
lines: { show: true },
points: { show: true },
xaxis: { mode: "time", timeformat: "%y/%m/%d %H:%M" },
legend: { container: '#legendHolder' },
grid: {
markings: [
{ color: 'red', lineWidth: 1, xaxis: { from: ${al.dateRecieved.time}, to: ${al.dateRecieved.time} } }
{ color: 'red', lineWidth: 1, xaxis: { from: ${al.dateRecieved.time}, to: ${al.dateRecieved.time} } },
]
}
};
Legend:
${++al2num} |
${al2.dateRecieved} |
${al2.reportedData} |
Display actions:
jQuery( function () {
var o;
var num = 1;
var placeholder = plot.getPlaceholder();
var vertica = getMax(plot.getData()[0].datapoints.points);
o = plot.pointOffset({ x: ${al1.dateRecieved.time}, y: vertica});
placeholder.append("");
num++;
});
function getMax(points) {
var max = points[1];
for(i = 1; i < points.length; i += 2) {
if(points[i] > max) max = points[i];
}
return max;
}