| <script type="text/javascript"> | |
| google.load("visualization", "1", {packages:["corechart"]}); | |
| google.setOnLoadCallback(drawChart); | |
| function drawChart() { | |
| var data = google.visualization.arrayToDataTable([ | |
| ['Date', 'http://www.vi.net/dedicated-servers/','http://www.vi.net/dedicated-servers/','http://www.vi.net/dedicated-servers/'], | |
| ['2012-11-22', 68, 68, 68, ],['2012-11-23', 70, 70, 70, ],['2012-11-24', 67, 67, 67, ],['2012-11-25', 65, 65, 65, ],['2012-11-26', 65, 65, 65, ],['2012-11-27', 65, 65, 65, ], ]); | |
| var options = { | |
| title: 'Keyword Ranking Data', | |
| backgroundColor: {strokeWidth:2,stroke:'#DDD'}, | |
| chartArea: {top:60,padding:100,width:'80%', height:'50%'}, | |
| pointSize: 5, | |
| hAxis: {baseline:1,showTextEvery:1,direction:1,slantedText:true}, | |
| vAxis: {gridlines: {count:10}, format:'#',direction:-1,minValue:1,maxValue:100,viewWindowMode:'pretty',textPosition:'out'}, | |
| legend: {position:'bottom'}, | |
| curveType: 'function' | |
| }; | |
| var chart = new google.visualization.LineChart(document.getElementById('chart_div')); | |
| chart.draw(data, options); | |
| } | |
| </script> |