NPC test statistics, total numbers and sum

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"
  },
  "hconcat": [
    {
      "width": 500,
      "height": 60,
      "title": "Total number of tests",
      "encoding": {
        "y": {
          "field": "class",
          "axis": {
            "title": null
          },
          "type": "nominal"
        },
        "x": {
          "field": "count",
          "aggregate": "sum",
          "type": "quantitative",
          "title": null,
          "scale": {
            "padding": 10
          }
        },
        "color": {
          "field": "class",
          "legend": null,
          "type": "nominal",
          "scale": {
            "domain": [
              "invalid/inconclusive",
              "negative",
              "positive"
            ],
            "range": [
              "#c7c7c7",
              "#8fd7f9",
              "#ef9292"
            ]
          }
        }
      },
      "layer": [
        {
          "mark": {
            "type": "bar",
            "tooltip": true
          }
        },
        {
          "mark": {
            "type": "text",
            "align": "left",
            "baseline": "middle",
            "dx": 3,
            "fill": "black"
          },
          "encoding": {
            "text": {
              "field": "count",
              "aggregate": "sum",
              "type": "quantitative"
            }
          }
        }
      ]
    },
    {
      "title": "Sum total",
      "width": 100,
      "height": 60,
      "mark": {
        "type": "text",
        "baseline": "middle",
        "fontSize": 14,
        "fill": "black"
      },
      "encoding": {
        "text": {
          "field": "count",
          "aggregate": "sum",
          "type": "quantitative"
        }
      }
    }
  ]
}
Owner: npc
Modified 2020-11-08T18:12:29.741Z
Created 2020-06-08T15:32:23.100Z

DataGraphics 1.0.4