OLD | NEW |
1 <!-- | 1 <!-- |
2 Copyright 2014 The Chromium Authors. All rights reserved. | 2 Copyright 2014 The Chromium Authors. All rights reserved. |
3 Use of this source code is governed by a BSD-style license that can be | 3 Use of this source code is governed by a BSD-style license that can be |
4 found in the LICENSE file. | 4 found in the LICENSE file. |
5 --> | 5 --> |
6 | 6 |
7 <link rel="import" href="ct-chart.html"> | 7 <link rel="import" href="ct-chart.html"> |
8 | 8 |
9 <polymer-element name="ct-trooper-card" attributes="group"> | 9 <polymer-element name="ct-trooper-card" attributes="group"> |
10 <template> | 10 <template> |
11 <style> | 11 <style> |
| 12 :host { |
| 13 display: flex; |
| 14 flex: 1; |
| 15 } |
| 16 |
12 #failure { | 17 #failure { |
13 flex: 1; | 18 flex: 1; |
14 margin-left: 10px; | 19 margin-left: 10px; |
15 } | 20 } |
16 | 21 |
17 #details { | 22 #details { |
18 font-weight: bold; | 23 font-weight: bold; |
19 } | 24 } |
20 | 25 |
21 ::shadow #chart { | 26 ::shadow #chart { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 this.options = { | 105 this.options = { |
101 scaleBeginAtZero: true, | 106 scaleBeginAtZero: true, |
102 legend: false, | 107 legend: false, |
103 annotateLabel: '<%=v1%>: <%=Math.round(v3)%>', | 108 annotateLabel: '<%=v1%>: <%=Math.round(v3)%>', |
104 annotateDisplay: true | 109 annotateDisplay: true |
105 } | 110 } |
106 }, | 111 }, |
107 }); | 112 }); |
108 </script> | 113 </script> |
109 </polymer-element> | 114 </polymer-element> |
OLD | NEW |