Revize 66c042f1
Přidáno uživatelem Štěpán Červenka před více než 3 roky(ů)
src/vega/body/windchart.json | ||
---|---|---|
1 | 1 |
{ |
2 | 2 |
"signals": [ |
3 |
{}, |
|
4 | 3 |
{ |
5 | 4 |
"name": "detailDomain", |
6 |
"update": "[time(data('range')[0].dateMin), time(data('range')[0].dateMin) + ((timeStep * 1000) * arrowCount)] " |
|
7 |
}, |
|
8 |
{ |
|
9 |
"name": "arrowCount", |
|
10 |
"value": 25 |
|
5 |
"update": "[time(data('range')[0].dateMin), time(data('range')[0].dateMin) + (timeWindow * arrowCount)] " |
|
11 | 6 |
}, |
12 | 7 |
{ |
13 | 8 |
"name": "minMaxRange", |
... | ... | |
15 | 10 |
}, |
16 | 11 |
{ |
17 | 12 |
"name": "selectionWidth", |
18 |
"update": "floor((arrowCount * (timeStep * 1000) * width) / minMaxRange)"
|
|
13 |
"update": "floor((arrowCount * timeWindow * width) / minMaxRange)"
|
|
19 | 14 |
} |
20 | 15 |
|
21 | 16 |
], |
... | ... | |
45 | 40 |
"value": "arrow" |
46 | 41 |
}, |
47 | 42 |
"size": { |
48 |
"value": 500
|
|
43 |
"value": 700
|
|
49 | 44 |
}, |
50 | 45 |
"x": { |
51 | 46 |
"scale": "xDetail", |
52 | 47 |
"field": "dateTime" |
53 | 48 |
}, |
54 | 49 |
"y": { |
55 |
"value": 30
|
|
50 |
"signal": "detailHeight / 2"
|
|
56 | 51 |
}, |
57 | 52 |
"angle": { |
58 |
"field": "avg"
|
|
53 |
"field": "value"
|
|
59 | 54 |
}, |
60 | 55 |
"color": { |
61 | 56 |
"value": "both" |
... | ... | |
78 | 73 |
{ |
79 | 74 |
"update": "[0,selectionWidth]" |
80 | 75 |
} |
76 |
], |
|
77 |
"marks": [ |
|
78 |
{}, |
|
79 |
{}, |
|
80 |
{}, |
|
81 |
{ |
|
82 |
"type": "symbol", |
|
83 |
"from": { |
|
84 |
"data": "table" |
|
85 |
}, |
|
86 |
"encode": { |
|
87 |
"update": { |
|
88 |
"size": { |
|
89 |
"value": 10 |
|
90 |
}, |
|
91 |
"x": { |
|
92 |
"scale": "xOverview", |
|
93 |
"field": "dateTime" |
|
94 |
}, |
|
95 |
"y": { |
|
96 |
"signal": "overviewHeight / 2" |
|
97 |
}, |
|
98 |
"color": { |
|
99 |
"value": "both" |
|
100 |
}, |
|
101 |
"strokeWidth": { |
|
102 |
"value": 1 |
|
103 |
}, |
|
104 |
"fill": { |
|
105 |
"value": "steelblue" |
|
106 |
} |
|
107 |
} |
|
108 |
} |
|
109 |
} |
|
81 | 110 |
] |
82 | 111 |
} |
83 | 112 |
] |
Také k dispozici: Unified diff
Re #8775 - Agregovat grafy se stejným typem sensoru