{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {
"url": "https://datagraphics.dc.scilifelab.se/api/dataset/c5b6ab32536649a59781a92f8ac932f3.csv"
},
"transform": [
{
"filter": "datum.diagnosis=='u09_9'"
}
],
"description": "Number of healthcare contacts",
"encoding": {
"color": {
"field": "sex",
"title": "Sex",
"type": "nominal"
},
"x": {
"field": "week",
"title": "Week",
"type": "nominal",
"axis": {
"labelOverlap": "parity"
}
},
"y": {
"field": "number_healthcare_contacts",
"title": "Number of healthcare contacts of patients with diagnosis U09.9",
"type": "quantitative"
}
},
"height": 250,
"mark": {
"point": {
"filled": true,
"size": 50
},
"tooltip": true,
"type": "line"
},
"width": 600
}