Revize 8cca41c0
Přidáno uživatelem Štěpán Červenka před více než 3 roky(ů)
src/vega/body/multilinechart.json | ||
---|---|---|
26 | 26 |
}, |
27 | 27 |
{ |
28 | 28 |
"signal": "sensorPath" |
29 |
}, |
|
30 |
{ |
|
31 |
"signal": "axeLegendPath" |
|
32 |
}, |
|
33 |
{ |
|
34 |
"signal": "axeLegendUnit" |
|
29 | 35 |
} |
30 | 36 |
], |
31 | 37 |
"as": [ |
32 | 38 |
"value", |
33 | 39 |
"timestamp", |
34 |
"sensor" |
|
40 |
"sensor", |
|
41 |
"axeLegend", |
|
42 |
"axeUnit" |
|
35 | 43 |
] |
36 | 44 |
} |
37 | 45 |
] |
... | ... | |
261 | 269 |
{}, |
262 | 270 |
{ |
263 | 271 |
"orient": "left", |
264 |
"scale": "yDetail" |
|
272 |
"scale": "yDetail", |
|
273 |
"grid": true, |
|
274 |
"title": {"signal": "data('table')[0].axeLegend"}, |
|
275 |
"encode": { |
|
276 |
"labels": { |
|
277 |
"update": { |
|
278 |
"text": {"signal": "datum.value + ' ' + data('table')[0].axeUnit"} |
|
279 |
} |
|
280 |
} |
|
281 |
} |
|
265 | 282 |
} |
266 | 283 |
], |
267 | 284 |
"marks": [ |
... | ... | |
368 | 385 |
"encode": { |
369 | 386 |
"enter": { |
370 | 387 |
"tooltip": { |
371 |
"signal": "{title: timeFormat(datum.dateTime, '%A, %e. %B %Y, %X') , '123': datum['123'], '456': datum['456'], '789': datum['789'] }"
|
|
388 |
"signal": null
|
|
372 | 389 |
} |
373 | 390 |
}, |
374 | 391 |
"update": { |
Také k dispozici: Unified diff
Re #8775 - Agregovat grafy se stejným typem sensoru