Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $( function() {
- if(!$(".google-chart").length)
- return
- var chartPool = [];
- chartPool.push(function() {
- var data = new google.visualization.DataTable();
- data.addColumn('date', 'Date');
- data.addColumn('number', 'Посетителей');
- data.addColumn('number', 'Игр');
- data.addRows([
- [new Date(2008, 1 ,1), 100, 2000],
- [new Date(2008, 6 ,2), 50, 3000],
- [new Date(2009, 1 ,2), 50, 3000],
- [new Date(2009, 6 ,2), 50, 3000],
- [new Date(2010, 1 ,2), 50, 3000],
- [new Date(2010, 6 ,2), 50, 3000],
- [new Date(2011, 1 ,2), 50, 3000],
- [new Date(2011, 6 ,2), 50, 3000],
- ]);
- var chart = new google.visualization.AnnotatedTimeLine($('#application_stats').get(0));
- chart.draw(data, {displayAnnotations: true});
- });
- $.each(chartPool, function(){
- this.call();
- });
- });
Add Comment
Please, Sign In to add comment