NPC test statistics, daily sums, main page

API
Dataset
NPC statistics data set 2020-12-22T10:06:26.847Z
Other graphics for same dataset
{
  "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
  "data": {
    "url": "https://datagraphics.dc.scilifelab.se/api/dataset/bbbaf64a25a1452287a8630503f07418.csv"
  },
  "transform": [
    {
      "calculate": "day(datetime(utcyear(datum.date), 0, 1))",
      "as": "startingDay"
    },
    {
      "calculate": "(4 - datum.startingDay) % 7 - 2",
      "as": "mondayOfFirstWeek"
    },
    {
      "calculate": "1 + floor((utcdayofyear(datum.date) - datum.mondayOfFirstWeek) / 7)",
      "as": "ISOweek"
    }
  ],
  "width": 280,
  "height": 200,
  "mark": {
    "type": "bar",
    "tooltip": true
  },
  "encoding": {
    "x": {
      "title": "Week",
      "field": "ISOweek",
      "type": "ordinal"
    },
    "y": {
      "title": "Number of tests",
      "field": "count",
      "aggregate": "sum",
      "type": "quantitative",
      "axis": {
        "orient": "right"
      }
    },
    "color": {
      "field": "class",
      "type": "nominal",
      "scale": {
        "domain": [
          "invalid/inconclusive",
          "negative",
          "positive"
        ],
        "range": [
          "#c7c7c7",
          "#8fd7f9",
          "#ef9292"
        ]
      },
      "legend": {
        "title": "Test results"
      }
    }
  }
}
Owner: arnold
Modified 2020-11-08T18:14:49.095Z
Created 2020-09-30T11:54:33.153Z

DataGraphics 1.0.4