{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {
"url": "https://datagraphics.dc.scilifelab.se/api/dataset/2839da544c424e25916bf43eaa6c6210.csv"
},
"width": 450,
"height": 200,
"description": "Number of healthcare contacts",
"encoding": {
"color": {
"field": "diagnosis_code",
"title": "Diagnosis code",
"type": "nominal",
"scale": {
"domain": [
"Z86.1A",
"U08.9",
"U09.9"
],
"range": [
"#c7c7c7",
"#8fd7f9",
"#ef9292"
]
}
},
"x": {
"field": "week",
"title": "Week",
"type": "nominal",
"axis": {
"labelAngle": 90,
"labelOverlap": "parity"
}
},
"y": {
"field": "number_healthcare_contacts",
"title": "Number of healthcare contacts of patients",
"type": "quantitative"
}
},
"mark": {
"point": {
"filled": true,
"size": 50
},
"tooltip": true,
"type": "line"
}
}