Permalink
Browse files

Change graph to line chart.

  • Loading branch information...
1 parent acdcb3e commit f5892cbaaeb2ed60944e8fe530885ad7069c9e0d @a-warner a-warner committed Aug 1, 2011
Showing with 4 additions and 1 deletion.
  1. +3 −0 chartExample.html
  2. +1 −1 js/chartLoad.js
View
@@ -3,6 +3,9 @@
<head>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript" src="js/chartLoad.js"></script>
+ <script>
+ createChart(data);
+ </script>
</head>
<body>
View
@@ -13,7 +13,7 @@ function drawChart(chartData) {
data.setValue(i,1,chartData.yVals[i])
}
- var chart = new google.visualization.ColumnChart(document.getElementById(chartData.divId));
+ var chart = new google.visualization.LineChart(document.getElementById(chartData.divId));
chart.draw(data, {width: 800, height: 480, title: chartData.title,
//vAxis: {title: 'Page Load Time(ms)', titleTextStyle: {color: 'blue'}},
hAxis: {title: chartData.xIdentifier, titleTextStyle: {color: 'red'}}

0 comments on commit f5892cb

Please sign in to comment.