LEFT | RIGHT |
1 // Copyright 2011 Google Inc. All Rights Reserved. | 1 // Copyright 2011 Google Inc. All Rights Reserved. |
2 | 2 |
3 /** | 3 /** |
4 * @fileoverview This script posts to the data servlet with a request for data | 4 * @fileoverview This script posts to the data servlet with a request for data |
5 * to display until either the servlet responds with data or responds that it | 5 * to display until either the servlet responds with data or responds that it |
6 * failed. The servlet responds to each post with a message, which the script | 6 * failed. The servlet responds to each post with a message, which the script |
7 * displays to the user and data if it exists, which the script draws as a | 7 * displays to the user and data if it exists, which the script draws as a |
8 * motion chart. | 8 * motion chart. |
9 * | 9 * |
10 * @author lparkinson@google.com (Laura Parkinson) | 10 * @author lparkinson@google.com (Laura Parkinson) |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 viz.css('width', width); | 51 viz.css('width', width); |
52 viz.css('height', height); | 52 viz.css('height', height); |
53 | 53 |
54 var dataTable = new google.visualization.DataTable(dataObject.data); | 54 var dataTable = new google.visualization.DataTable(dataObject.data); |
55 var motionchart = new google.visualization.MotionChart(viz[0]); | 55 var motionchart = new google.visualization.MotionChart(viz[0]); |
56 motionchart.draw(dataTable, {width: width, height: height}); | 56 motionchart.draw(dataTable, {width: width, height: height}); |
57 } | 57 } |
58 } | 58 } |
59 }, 'json'); | 59 }, 'json'); |
60 } | 60 } |
LEFT | RIGHT |