I was displaying the temperature and humidity from outdoor and indoor on google gauge(see here). However the only disadvantage of it is every time you will get to see the latest values and you have no straight away way to see the old values, so I was thinking lets spend this weekend with Google Line Chart while some of my fellow office colleagues are away walking for a noble cause.
for little bit of optimisation I use javascript function to detect if the platform the page displaying graph is mobile platform or a desktop. And based on which I adjust the settings of graphs.
1 2 3 4 5 6 7 8 9 10 11 12 |
(function (window) { { var unknown = '-'; // browser var nVer = navigator.appVersion; // mobile version var mobile = /Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(nVer); } window.jscd = { mobile: mobile, }; }(this)); |