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 } |
| 15 |
12 #failure { | 16 #failure { |
13 flex: 1; | 17 flex: 1; |
14 margin-left: 10px; | 18 margin-left: 10px; |
15 } | 19 } |
16 | 20 |
17 #details { | 21 #details { |
18 font-weight: bold; | 22 font-weight: bold; |
19 } | 23 } |
20 | 24 |
21 ::shadow #chart { | 25 ::shadow #chart { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 this.options = { | 104 this.options = { |
101 scaleBeginAtZero: true, | 105 scaleBeginAtZero: true, |
102 legend: false, | 106 legend: false, |
103 annotateLabel: '<%=v1%>: <%=Math.round(v3)%>', | 107 annotateLabel: '<%=v1%>: <%=Math.round(v3)%>', |
104 annotateDisplay: true | 108 annotateDisplay: true |
105 } | 109 } |
106 }, | 110 }, |
107 }); | 111 }); |
108 </script> | 112 </script> |
109 </polymer-element> | 113 </polymer-element> |
OLD | NEW |