|
36 | 36 | display-name="[[tagMetadata.displayName]]"
|
37 | 37 | description="[[tagMetadata.description]]"
|
38 | 38 | ></tf-card-heading>
|
39 |
| - <tf-scalar-chart |
40 |
| - x-type="[[xType]]" |
41 |
| - x-components-creation-method="[[_xComponentsCreationMethod]]" |
42 |
| - y-value-accessor="[[_yValueAccessor]]" |
43 |
| - tooltip-columns="[[_tooltipColumns]]" |
44 |
| - smoothing-enabled="[[smoothingEnabled]]" |
45 |
| - smoothing-weight="[[smoothingWeight]]" |
46 |
| - tooltip-sorting-method="[[tooltipSortingMethod]]" |
47 |
| - ignore-y-outliers="[[ignoreYOutliers]]" |
48 |
| - request-manager="[[requestManager]]" |
49 |
| - runs="[[runs]]" |
50 |
| - tag="[[tag]]" |
51 |
| - tag-metadata="[[tagMetadata]]" |
52 |
| - active="[[active]]" |
53 |
| - data-url="[[_dataUrl]]" |
54 |
| - log-scale-active="[[_logScaleActive]]" |
55 |
| - process-data="[[_processData]]" |
56 |
| - > |
| 39 | + <div id="tf-scalar-chart-container"> |
| 40 | + <tf-scalar-chart |
| 41 | + x-type="[[xType]]" |
| 42 | + x-components-creation-method="[[_xComponentsCreationMethod]]" |
| 43 | + y-value-accessor="[[_yValueAccessor]]" |
| 44 | + tooltip-columns="[[_tooltipColumns]]" |
| 45 | + smoothing-enabled="[[smoothingEnabled]]" |
| 46 | + smoothing-weight="[[smoothingWeight]]" |
| 47 | + tooltip-sorting-method="[[tooltipSortingMethod]]" |
| 48 | + ignore-y-outliers="[[ignoreYOutliers]]" |
| 49 | + request-manager="[[requestManager]]" |
| 50 | + runs="[[runs]]" |
| 51 | + tag="[[tag]]" |
| 52 | + tag-metadata="[[tagMetadata]]" |
| 53 | + active="[[active]]" |
| 54 | + data-url="[[_dataUrl]]" |
| 55 | + log-scale-active="[[_logScaleActive]]" |
| 56 | + process-data="[[_processData]]" |
| 57 | + > |
| 58 | + </tf-scalar-chart> |
| 59 | + </div> |
57 | 60 | <div id="buttons">
|
58 | 61 | <paper-icon-button
|
59 | 62 | selected$="[[_expanded]]"
|
|
96 | 99 | </div>
|
97 | 100 | </template>
|
98 | 101 | </div>
|
99 |
| - </tf-scalar-chart> |
100 | 102 | <style>
|
101 | 103 | :host {
|
102 |
| - height: 235px; |
103 |
| - width: 330px; |
104 | 104 | margin: 5px;
|
105 | 105 | display: block;
|
| 106 | + width: 330px; |
106 | 107 | }
|
107 | 108 |
|
108 | 109 | :host[_expanded] {
|
| 110 | + width: 100%; |
| 111 | + } |
| 112 | + |
| 113 | + :host[_expanded] #tf-scalar-chart-container { |
109 | 114 | height: 400px;
|
| 115 | + } |
| 116 | + |
| 117 | + #tf-scalar-chart-container { |
| 118 | + height: 200px; |
110 | 119 | width: 100%;
|
111 | 120 | }
|
112 | 121 |
|
113 | 122 | tf-card-heading {
|
| 123 | + display: block; |
114 | 124 | margin-bottom: 10px;
|
115 | 125 | }
|
116 | 126 |
|
|
158 | 168 | import * as ChartHelpers from '../vz-line-chart/vz-chart-helpers.js';
|
159 | 169 | import {getRouter} from '../tf-backend/router.js';
|
160 | 170 |
|
161 |
| - /** |
| 171 | + /** |
162 | 172 | * Allows:
|
163 | 173 | * - "step" - Linear scale using the "step" property of the datum.
|
164 | 174 | * - "wall_time" - Temporal scale using the "wall_time" property of the
|
|
289 | 299 | this.set('_logScaleActive', !this._logScaleActive);
|
290 | 300 | },
|
291 | 301 | _resetDomain() {
|
292 |
| - const chart = this.$$('vz-line-chart'); |
| 302 | + const chart = this.$$('tf-scalar-chart'); |
293 | 303 | if (chart) {
|
294 | 304 | chart.resetDomain();
|
295 | 305 | }
|
|
0 commit comments