Revize ae8c1b88
Přidáno uživatelem Štěpán Červenka před téměř 4 roky(ů)
src/vega-analyze/interrupted-analyze/final-smartlinechart.json | ||
---|---|---|
7 | 7 |
"data": [ |
8 | 8 |
{ |
9 | 9 |
"name": "table", |
10 |
"url": "data.json", |
|
10 |
"url": "data_big.json",
|
|
11 | 11 |
"transform": [ |
12 | 12 |
{ |
13 | 13 |
"type": "formula", |
14 |
"expr": "toDate(datum[\"time_stamp\"])",
|
|
14 |
"expr": "toDate(datum[\"time\"])", |
|
15 | 15 |
"as": "dateTime" |
16 | 16 |
}, |
17 | 17 |
{ |
... | ... | |
23 | 23 |
}, |
24 | 24 |
{ |
25 | 25 |
"name": "table2", |
26 |
"url": "data.json", |
|
27 |
"transform": [ |
|
28 |
{ |
|
29 |
"type": "formula", |
|
30 |
"expr": "toDate(datum[\"time_stamp\"])", |
|
31 |
"as": "dateTime" |
|
32 |
}, |
|
33 |
{ |
|
34 |
"type": "timeunit", |
|
35 |
"field": "dateTime", |
|
36 |
"units": ["year", "month","date", "hours"] |
|
37 |
}, |
|
26 |
"source": "table", |
|
27 |
"transform":[ |
|
38 | 28 |
{ |
39 | 29 |
"type": "lookup", |
40 | 30 |
"from": "table", |
... | ... | |
56 | 46 |
{ |
57 | 47 |
"name": "yscale", |
58 | 48 |
"type": "linear", |
59 |
"domain": {"data": "table", "field": "sensors[0].value"},
|
|
49 |
"domain": {"data": "table", "field": "value"}, |
|
60 | 50 |
"nice": true, |
61 | 51 |
"range": "height" |
62 | 52 |
} |
... | ... | |
76 | 66 |
"shape": {"value": "circle"}, |
77 | 67 |
"size": {"value": 10}, |
78 | 68 |
"x": {"scale": "xscale", "field": "dateTime"}, |
79 |
"y": {"scale": "yscale", "field": "sensors[0].value"},
|
|
69 |
"y": {"scale": "yscale", "field": "value"}, |
|
80 | 70 |
"color": {"value": "both"}, |
81 | 71 |
"strokeWidth": {"value": 4} |
82 | 72 |
} |
... | ... | |
99 | 89 |
"field" : "unit0" |
100 | 90 |
} |
101 | 91 |
], |
102 |
"y": {"scale": "yscale", "field": "sensors[0].value"},
|
|
92 |
"y": {"scale": "yscale", "field": "value"}, |
|
103 | 93 |
"y2":[ |
104 | 94 |
{ |
105 | 95 |
"test": "isValid(datum.obj)", |
106 | 96 |
"scale" : "yscale", |
107 |
"field" : "obj.sensors[0].value"
|
|
97 |
"field" : "obj.value" |
|
108 | 98 |
}, |
109 | 99 |
{ |
110 | 100 |
"scale" : "yscale", |
111 |
"field" : "sensors[0].value"
|
|
101 |
"field" : "value" |
|
112 | 102 |
} |
113 | 103 |
] |
114 | 104 |
|
Také k dispozici: Unified diff
Re #8409 - Prozkoumat možnosti interakce s grafy v knihovně Vega