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-table-chart' encapsulates a 'google-chart' of table type. | 11 `stats-table-chart' encapsulates a 'google-chart' of table type. |
12 This element exposes a 'data' attribute which is JSON serialized | 12 This element exposes a 'data' attribute which is JSON serialized |
13 `google.visualization.DataTable` object and a `resolution` attribute that is | 13 `google.visualization.DataTable` object and a `resolution` attribute that is |
14 'minutes', 'hours', or 'days'. | 14 'minutes', 'hours', or 'days'. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 if (this.data && this.isReady) { | 47 if (this.data && this.isReady) { |
48 if (!this.table) { | 48 if (!this.table) { |
49 this.table = new google.visualization.Table(this.$.chart); | 49 this.table = new google.visualization.Table(this.$.chart); |
50 } | 50 } |
51 this.table.draw(new google.visualization.DataTable(this.data)); | 51 this.table.draw(new google.visualization.DataTable(this.data)); |
52 } | 52 } |
53 } | 53 } |
54 }); | 54 }); |
55 </script> | 55 </script> |
56 </polymer-element> | 56 </polymer-element> |
OLD | NEW |