OLD | NEW |
1 <!-- | 1 <!-- |
2 # Copyright 2015 The LUCI Authors. All rights reserved. | 2 # Copyright 2015 The LUCI Authors. All rights reserved. |
3 # Use of this source code is governed by the Apache v2.0 license that can be | 3 # Use of this source code is governed under the Apache License, Version 2.0 |
4 # found in the LICENSE file. | 4 # that can be found in the LICENSE file. |
5 | 5 |
6 --> | 6 --> |
7 | 7 |
8 <!-- | 8 <!-- |
9 @group Swarming Elements | 9 @group Swarming Elements |
10 | 10 |
11 `stats-request-chart' encapsulates a 'google-chart' element and data formating | 11 `stats-request-chart' encapsulates a 'google-chart' element and data formating |
12 logic specific for Http Request chart of the Swarming statistics app. | 12 logic specific for Http Request chart of the Swarming statistics app. |
13 This element exposes a 'data' attribute which is a JSON serialized | 13 This element exposes a 'data' attribute which is a JSON serialized |
14 `google.visualization.DataTable` object, and a `resolution` attribute that is | 14 `google.visualization.DataTable` object, and a `resolution` attribute that is |
(...skipping 22 matching lines...) Expand all Loading... |
37 // These indexes are relative to stats_gviz._Summary.ORDER. | 37 // These indexes are relative to stats_gviz._Summary.ORDER. |
38 this.getKeyFormatter().format(this.dataTable, 0); | 38 this.getKeyFormatter().format(this.dataTable, 0); |
39 | 39 |
40 var view = new google.visualization.DataView(this.dataTable); | 40 var view = new google.visualization.DataView(this.dataTable); |
41 view.setColumns([0, 1, 2]); | 41 view.setColumns([0, 1, 2]); |
42 this.attachView(view); | 42 this.attachView(view); |
43 } | 43 } |
44 }); | 44 }); |
45 </script> | 45 </script> |
46 </polymer-element> | 46 </polymer-element> |
OLD | NEW |