changeset 15:ebf411c89a3d

Fix bar width now we get data more frequently.
author Daniel O'Connor <darius@dons.net.au>
date Fri, 31 May 2013 13:35:56 +0930
parents 294e6a7fbb6e
children 5a9b33dcdb2c
files static/iwws.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/static/iwws.js	Fri May 31 13:34:54 2013 +0930
+++ b/static/iwws.js	Fri May 31 13:35:56 2013 +0930
@@ -119,7 +119,7 @@
     $.plot($("#graph2"), [
 	{ data : wavg, label: "Wind (Avg)", yaxis : 1, points : { show : true }, lines : { show : true }, direction : true },
 	{ data : wgust, label: "Wind (Gust)", yaxis : 1, points : { show : true }, lines : { show : true }, direction :  true },
-	{ data : rain, label: "Rain", yaxis : 2, bars : { show : true, barWidth : 0.5 * 60 * 60 * 1000, align : "centre" } },
+	{ data : rain, label: "Rain", yaxis : 2, bars : { show : true, barWidth : 5 * 60 * 1000, align : "centre" } },
     ],
 	   { xaxis : { mode : 'time' },
 	     legend : { backgroundOpacity : 0, position : 'nw' },