NPC test statistics, daily fraction positive

API
Dataset
NPC statistics data set 2020-10-25T03:10:10.894Z
Other graphics for same dataset
{
  "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
  "data": {
    "url": "https://datagraphics.dckube.scilifelab.se/api/dataset/bbbaf64a25a1452287a8630503f07418.csv",
    "format": {
      "type": "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": {
      "field": "date",
      "type": "temporal",
      "title": "Date",
      "axis": {
        "format": "%Y-%m-%d"
      }
    },
    "y": {
      "aggregate": "sum",
      "field": "counts",
      "type": "quantitative",
      "stack": "normalize",
      "title": "Fraction of tests",
      "scale": {
        "domain": [
          0,
          0.3
        ]
      },
      "axis": {
        "orient": "right",
        "format": ".1%",
        "title": "Fraction positive"
      }
    },
    "color": {
      "field": "class",
      "type": "nominal",
      "scale": {
        "domain": [
          "positive"
        ],
        "range": [
          "#ef9292"
        ]
      },
      "legend": null
    }
  }
}
Owner: npc
Modified 2020-09-18T10:02:08.667Z
Created 2020-07-05T09:01:36.947Z

DataGraphics version 0.7.1