You can see some demo on http://kraken.alarex.net:8080/scada_orlik/public_view.htm?viewId=14
This is combination serverscript, javascript and Flash.
Code, which is used in View. "dataPoint.getLatestPointValues(10)" is own added method to ScadaBR.
var data_series = dataPoint.getLatestPointValues(10);
var pole = "[";
for (i=0;i<data_series.size();i++) {
pole+=""+data_series.get(i).getDoubleValue();
if (i!=data_series.size()-1) pole+=",";
}
pole+="]";
s = "<script>try {document.getElementById(\"AXLED\")._ax_setChartValues("+pole+");} catch (e){};</script>";
return s;
On http://kraken.alarex.net:8080/scada_orlik/public_view.htm?viewId=15
is some test of JavaScript chart.
ServerScript is non-standard, but can be strong in Mango, when some change be provided. I like it and I think, that this is best on Mango.
Ondrej