I have a data set that has multiple "values" in each row, e.g.:
"data": {
"values": [
{"date": "2020-01-01", "red":1, "green": 2},
{"date": "2020-01-02", "red":3, "green": 4},
{"date": "2020-01-03", "red":5, "green": 3},
]}
Based on my understanding of bar charts, each bar needs its own "row". Is there an inbuilt way to transpose the above data in Vega Lite and create a bar chart (with red and green stacked, so that it would total 3 on 1/1, 7 on 1/2, 8 on 1/3 and so forth)?
Thanks a lot for any help, J
