NPC test statistics, daily fractions

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"
  },
  "width": 800,
  "height": 100,
  "transform": [
    {
      "filter": "datum.class!='invalid/inconclusive'"
    },
    {
      "calculate": "datum.count",
      "as": "counts"
    }
  ],
  "mark": {
    "type": "bar",
    "tooltip": true,
    "clip": true
  },
  "encoding": {
    "x": {
      "title": "Date",
      "field": "date",
      "type": "temporal",
      "axis": {
        "format": "%Y-%m-%d"
      }
    },
    "y": {
      "title": "Fraction of tests",
      "aggregate": "sum",
      "field": "counts",
      "type": "quantitative",
      "stack": "normalize",
      "scale": {
        "domain": [
          0.0,
          0.3
        ]
      },
      "axis": {
        "orient": "right",
        "format": "%"
      }
    },
    "color": {
      "field": "class",
      "type": "nominal",
      "scale": {
        "domain": [
          "negative",
          "positive"
        ],
        "range": [
          "#8fd7f9",
          "#ef9292"
        ]
      },
      "legend": {
        "title": "Test results"
      }
    }
  }
}
Owner: npc
Modified 2020-11-08T18:13:15.583Z
Created 2020-06-22T16:00:53.971Z

DataGraphics 1.0.4