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
Meteoplug goes JavaScript
Re: Meteoplug goes JavaScript
Hei vielen Dank für die implementation
coole Sache.. wirklich..!
Marco
coole Sache.. wirklich..!
Marco
Re: Meteoplug goes JavaScript
Hi,
That's perfect!
Regards
That's perfect!
Regards
-
- Posts: 69
- Joined: Tue Mar 16, 2010 12:05 pm
- Location: Isle of Skye
- Contact:
Re: Meteoplug goes JavaScript
Very nice.
Thank you Boris.
PS. It seems to ignore
legendpos=left
but it does wrap the 'top' key well, so that's okay.
Thank you Boris.
PS. It seems to ignore
legendpos=left
but it does wrap the 'top' key well, so that's okay.
David