NPC test statistics, cumulative by test result

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": 250,
  "transform": [
    {
      "sort": [
        {
          "field": "date"
        }
      ],
      "window": [
        {
          "op": "sum",
          "field": "count",
          "as": "cumulative_count"
        }
      ],
      "groupby": [
        "class"
      ],
      "frame": [
        null,
        0
      ]
    }
  ],
  "mark": {
    "type": "line",
    "tooltip": true,
    "point": {
      "filled": false,
      "fill": "white"
    }
  },
  "encoding": {
    "x": {
      "title": "Date",
      "field": "date",
      "type": "temporal",
      "timeUnit": "yearmonthdate",
      "axis": {
        "format": "%Y-%m-%d"
      }
    },
    "y": {
      "title": "Cumulative number of tests",
      "field": "cumulative_count",
      "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: npc
Modified 2020-07-05T09:11:58.391Z
Created 2020-06-08T15:55:47.860Z

DataGraphics version 0.7.1