Meteoplug goes JavaScript
Posted: Tue May 01, 2012 1:40 pm
As flash is something like a dying route I decided to purchase a SaaS license of the javascript charts from amcharts.com. Hopefully, this will make presentation of meteoplug charts easier on mobile devices that do not support flash.
To make things as easy for you as possible I did not invent new commands to let you build javascript charts, but I simply added a "engine" command that allows to take "flash" (default), "javasrcipt" and "gnuplot" as parameter. Therefore, a chart definition can make use of these engines. All you have to do is to add a line "engine=javascript" to your chart definitions and you have a quite similar looking javascript chart as output. When calling a chart by its URL simply add "&engine=javascript" to the URL and you old flash chart definition will be rendered via JavaScript. Colormaps and Weibull charts are not supported in Javascript so far, but I think these are not used very widely.
I also did a slight change to the dashboard, now listed als "_dashboard" in your list of predefined charts. This chart definition can now also be called with "&engine=javascript" extension which results in presenting the embedded charts via javascript.
I am sure you will find hickups here and there, which I will hopefully be able to solve over time.
Example: http://www.meteoplug.com/cgi-bin/meteoc ... javascript
To make things as easy for you as possible I did not invent new commands to let you build javascript charts, but I simply added a "engine" command that allows to take "flash" (default), "javasrcipt" and "gnuplot" as parameter. Therefore, a chart definition can make use of these engines. All you have to do is to add a line "engine=javascript" to your chart definitions and you have a quite similar looking javascript chart as output. When calling a chart by its URL simply add "&engine=javascript" to the URL and you old flash chart definition will be rendered via JavaScript. Colormaps and Weibull charts are not supported in Javascript so far, but I think these are not used very widely.
I also did a slight change to the dashboard, now listed als "_dashboard" in your list of predefined charts. This chart definition can now also be called with "&engine=javascript" extension which results in presenting the embedded charts via javascript.
I am sure you will find hickups here and there, which I will hopefully be able to solve over time.
Example: http://www.meteoplug.com/cgi-bin/meteoc ... javascript