{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"data": {
"url": "https://datagraphics.dc.scilifelab.se/api/dataset/6d2f88f8f95a464980be190a2bddd8e7.csv"
},
"width": 600,
"height": 200,
"mark": {
"type": "bar"
},
"encoding": {
"x": {
"title": "Week",
"field": "week",
"type": "nominal",
"axis": {
"labelAngle": 90
}
},
"y": {
"title": "SARS CoV-2 % relative to value Nov 6th 2020",
"field": "relative_concentration",
"type": "quantitative",
"axis": {
"orient": "right"
}
},
"color": {
"field": "facility",
"type": "nominal",
"scale": {
"range": [
"#8fd7f9"
]
},
"legend": null
},
"tooltip": [
{
"field": "week",
"type": "nominal",
"title": "Week"
},
{
"field": "facility",
"type": "nominal",
"title": "Wastewater treatment facility"
},
{
"field": "relative_concentration",
"type": "quantitative",
"title": "SARS CoV-2 % relative to value Nov 6th 2020"
}
]
}
}