Google Chart Tools

I would like to use Google Chart Tools on one of the device tabs. It is possible to use java script on tabs so I guess it should work in general. Google Chart tools require to load an AJAX API before you can use it and I wonder how to do that. Basically, I wonder where the line “” should go. Did anyone try this before (With or without success)?

I can log sensor data in a text file on the system and I can download it then and make nice graphs. However, I would like to see some sensor data charts directly in the dashboard and thought I could use Google Charts to read and present whats in the text files.

I considered it for the CurrentCost EnviR plugin, but decided to go with the simpler Image Chart API, mostly for the reason you mention.

While searching, I did see some suggestions that you could use DOM manipulation to insert (local-to-Vera copies of) the Google Chart JavaScript files into the current document’s when your tab’s JavaScript loads. It all seemed a bit precarious.

Agreed, the simpler Image Chart API is the way to go. I looked at the CurrentCost EnviR plugin and this is what I was looking for.

Not quite what you’re looking for, but [tt]http://code.matthewwild.co.uk/gchart/summary[/tt] might be of interest.

Yes that is a good hint; that is the sort of thing I am looking at. (I am not familiar with UIs; things I normally deal with do not have user interfaces)