{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"data": {
"url": "https://datagraphics.dc.scilifelab.se/api/dataset/bbbaf64a25a1452287a8630503f07418.csv"
},
"hconcat": [
{
"width": 500,
"height": 60,
"title": "Total number of tests",
"encoding": {
"y": {
"field": "class",
"axis": {
"title": null
},
"type": "nominal"
},
"x": {
"field": "count",
"aggregate": "sum",
"type": "quantitative",
"title": null,
"scale": {
"padding": 10
}
},
"color": {
"field": "class",
"legend": null,
"type": "nominal",
"scale": {
"domain": [
"invalid/inconclusive",
"negative",
"positive"
],
"range": [
"#c7c7c7",
"#8fd7f9",
"#ef9292"
]
}
}
},
"layer": [
{
"mark": {
"type": "bar",
"tooltip": true
}
},
{
"mark": {
"type": "text",
"align": "left",
"baseline": "middle",
"dx": 3,
"fill": "black"
},
"encoding": {
"text": {
"field": "count",
"aggregate": "sum",
"type": "quantitative"
}
}
}
]
},
{
"title": "Sum total",
"width": 100,
"height": 60,
"mark": {
"type": "text",
"baseline": "middle",
"fontSize": 14,
"fill": "black"
},
"encoding": {
"text": {
"field": "count",
"aggregate": "sum",
"type": "quantitative"
}
}
}
]
}