{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"data": {
"url": "https://datagraphics.dc.scilifelab.se/api/dataset/bbbaf64a25a1452287a8630503f07418.csv"
},
"width": 800,
"height": 250,
"mark": {
"type": "bar",
"tooltip": true
},
"encoding": {
"x": {
"title": "Date",
"field": "date",
"type": "temporal",
"timeUnit": "yearmonthdate",
"axis": {
"format": "%Y-%m-%d"
}
},
"y": {
"title": "Number of tests",
"field": "count",
"type": "quantitative",
"axis": {
"orient": "right"
}
},
"color": {
"field": "class",
"type": "nominal",
"scale": {
"domain": [
"invalid/inconclusive",
"negative",
"positive"
],
"range": [
"#c7c7c7",
"#8fd7f9",
"#ef9292"
]
},
"legend": {
"title": "Test results"
}
}
}
}