{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {
"url": "https://datagraphics.dc.scilifelab.se/api/dataset/0ac8fa02871745048491de74e5689da9.csv"
},
"transform": [
{
"filter": "datum.channel=='Knivsta'"
},
{
"calculate": "datum.relative_copy_number",
"as": "relative_copy_number_total"
}
],
"width": 600,
"height": 200,
"mark": {
"type": "bar"
},
"encoding": {
"x": {
"title": "Week",
"field": "week",
"type": "nominal",
"axis": {
"labelAngle": 90
}
},
"y": {
"title": "Relative copy number of SARS-CoV-2 to PMMoV, %",
"field": "relative_copy_number_total",
"type": "quantitative",
"axis": {
"orient": "right"
}
},
"color": {
"field": "channel",
"type": "nominal",
"scale": {
"domain": [
"Knivsta"
],
"range": [
"#8fd7f9"
]
},
"legend": null
},
"tooltip": [
{
"field": "week",
"type": "nominal",
"title": "Week"
},
{
"field": "channel",
"type": "nominal",
"title": "Wastewater collection channel"
},
{
"field": "relative_copy_number_total",
"type": "quantitative",
"title": "Relative copy number of SARS-CoV-2 to PMMoV, %"
}
]
}
}