1
繼維加 - 精簡版的西雅圖天氣教程,很容易通過一個月積平均最低溫度:如何使用Vega-Lite在軸上繪製多個變量?
{
"$schema": "https://vega.github.io/schema/vega-lite/v2.json",
"data": {
"url": "https://vega.github.io/vega-lite/data/seattle-weather.csv"
},
"mark": "line",
"encoding": {
"x": {
"timeUnit": "month",
"field": "date",
"type": "temporal"
},
"y": {
"aggregate": "mean",
"field": "temp_min",
"type": "quantitative"
}
}
}
這個數據集也有temp_max
變量。我如何在y軸上同時繪製temp_min
和temp_max
?