NPC test statistics, total numbers and sum

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"
    }
  },
  "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-07-03T10:10:11.148Z
Created 2020-06-08T15:32:23.100Z

DataGraphics version 0.7.1