Permalink
Browse files

Properly configure the chart

  • Loading branch information...
1 parent f459351 commit 31ae4238d0142ca42a596b35ab5bb694b3378e2a @jwo jwo committed Apr 2, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 templates/chart.html.template
View
6 templates/chart.html.template
@@ -13,6 +13,12 @@
{{row-array}}
]);
+ var options = {smoothLine: true,
+ series:{0:{targetAxisIndex:0}, 1:{targetAxisIndex:1}},
+ vAxes:[
+ {title:'Rainfall'},
+ {title:'Temperature'}
+ ]}
var chart = new google.visualization.LineChart(document.getElementById('chart_div'));
chart.draw(data, options);

0 comments on commit 31ae423

Please sign in to comment.