Revize 23053208
Přidáno uživatelem Štěpán Červenka před více než 3 roky(ů)
src/app/sensor/components/sensor.component.ts | ||
---|---|---|
61 | 61 |
} |
62 | 62 |
} |
63 | 63 |
|
64 |
this.observationService.getObservation({ |
|
64 |
/* this.observationService.getObservation({
|
|
65 | 65 |
unit_id: this.unitId, |
66 | 66 |
sensor_id: this.sensorId, |
67 | 67 |
from: moment(range[0]).format('yyyy-MM-DD HH:mm:ssZ').slice(0, -3), |
... | ... | |
71 | 71 |
if (observations) { |
72 | 72 |
GraphLoader.getObservationGraph(this.sensorId, observations, "#view"); |
73 | 73 |
} |
74 |
}); |
|
74 |
});*/
|
|
75 | 75 |
|
76 | 76 |
|
77 | 77 |
|
78 |
/* if (this.selectedAggregationFunction) {
|
|
78 |
if (this.selectedAggregationFunction) { |
|
79 | 79 |
agg = this.selectedAggregationFunction; |
80 | 80 |
} |
81 | 81 |
|
... | ... | |
91 | 91 |
GraphLoader.getGraph(null, null, null, null); |
92 | 92 |
} |
93 | 93 |
} |
94 |
);*/
|
|
94 |
); |
|
95 | 95 |
|
96 | 96 |
} |
97 | 97 |
} |
src/vega/base/default.json | ||
---|---|---|
22 | 22 |
}, |
23 | 23 |
{ |
24 | 24 |
"type": "formula", |
25 |
"expr": "toDate(datum[\"timestamp\"])",
|
|
25 |
"expr": "utcParse(datum.timestamp, '%Y-%m-%d %H:%M:%S.%f%Z')",
|
|
26 | 26 |
"as": "dateTime" |
27 | 27 |
} |
28 | 28 |
] |
... | ... | |
39 | 39 |
}, |
40 | 40 |
{ |
41 | 41 |
"type": "formula", |
42 |
"expr":"time(datum[\"dateMinTemp\"] - (timeStep * 500))",
|
|
42 |
"expr":"time(datum[\"dateMinTemp\"]) - (timeStep * 500)",
|
|
43 | 43 |
"as": "dateMin" |
44 | 44 |
}, |
45 | 45 |
{ |
46 | 46 |
"type": "formula", |
47 |
"expr":"time(datum[\"dateMaxTemp\"] + (timeStep * 500))",
|
|
47 |
"expr":"time(datum[\"dateMaxTemp\"]) + (timeStep * 500)",
|
|
48 | 48 |
"as": "dateMax" |
49 | 49 |
}, |
50 | 50 |
{ |
... | ... | |
82 | 82 |
"name": "xDetail", |
83 | 83 |
"type": "time", |
84 | 84 |
"range": "width", |
85 |
"domain": {"data": "range", "fields": ["dateMin", "dateMax"]},
|
|
85 |
"domain": {"data": "table", "field": "dateTime"},
|
|
86 | 86 |
"domainRaw": {"signal": "detailDomain"} |
87 | 87 |
} |
88 | 88 |
], |
Také k dispozici: Unified diff
Re #8807 - Opravy
+ add mozilla support