district,pm25,day Lucheng,40,Mon Lucheng,50,Tue Ouhai,30,Mon Ouhai,34,Tue --- {"q": "average pm25 by district", "gold": {"mark": "bar", "encoding": {"x": {"field": "district", "type": "nominal"}, "y": {"field": "pm25", "type": "quantitative", "aggregate": "mean"}}}, "pred": {"mark": "bar", "encoding": {"y": {"field": "district", "type": "nominal"}, "x": {"field": "pm25", "type": "quantitative", "aggregate": "mean"}}}} {"q": "total pm25 by day", "gold": {"mark": "bar", "encoding": {"x": {"field": "day", "type": "ordinal"}, "y": {"field": "pm25", "type": "quantitative", "aggregate": "sum"}}}, "pred": {"mark": "bar", "encoding": {"x": {"field": "day", "type": "ordinal"}, "y": {"field": "pm25", "type": "quantitative", "aggregate": "sum"}}}} {"q": "readings per district", "gold": {"mark": "bar", "encoding": {"x": {"field": "district", "type": "nominal"}, "y": {"type": "quantitative", "aggregate": "count"}}}, "pred": {"mark": "bar", "encoding": {"x": {"field": "district", "type": "nominal"}, "y": {"field": "pm25", "type": "quantitative", "aggregate": "sum"}}}} {"q": "average pm25 by district (line)", "gold": {"mark": "bar", "encoding": {"x": {"field": "district", "type": "nominal"}, "y": {"field": "pm25", "type": "quantitative", "aggregate": "mean"}}}, "pred": {"mark": "line", "encoding": {"x": {"field": "district", "type": "nominal"}, "y": {"field": "pm25", "type": "quantitative", "aggregate": "average"}}}}