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