¿Cómo trazar varias variables en un eje con Vega-Lite?
Siguiendo el tutorial del clima de Seattle de Vega-Lite, fue fácil trazar la temperatura promedio mínima por mes:
{
"$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"
}
}
}
Este conjunto de datos también tienetemp_max
variable. ¿Cómo puedo trazar ambostemp_min
ytemp_max
en el eje y?