Relative copy number of SARS-CoV-2 to PMMoV in Uppsala

API
{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "data": {
    "url": "https://datagraphics.dckube.scilifelab.se/api/dataset/0ac8fa02871745048491de74e5689da9.csv"
  },
  "transform": [
    {
      "filter": "datum.channel=='Uppsala'"
    },
    {
      "calculate": "datum.relative_copy_number",
      "as": "relative_copy_number_total"
    }
  ],
  "width": 600,
  "height": 200,
  "mark": {
    "type": "bar"
  },
  "encoding": {
    "x": {
      "title": "Week",
      "field": "week",
      "type": "nominal",
      "axis": {
        "labelAngle": 90
      }
    },
    "y": {
      "title": "Relative copy number of SARS-CoV-2 to PMMoV, %",
      "field": "relative_copy_number_total",
      "type": "quantitative",
      "axis": {
        "orient": "right"
      }
    },
    "color": {
      "field": "channel",
      "type": "nominal",
      "scale": {
        "domain": [
          "Uppsala"
        ],
        "range": [
          "#8fd7f9"
        ]
      },
      "legend": null
    },
    "tooltip": [
      {
        "field": "week",
        "type": "nominal",
        "title": "Week"
      },
      {
        "field": "channel",
        "type": "nominal",
        "title": "Wastewater collection channel"
      },
      {
        "field": "relative_copy_number_total",
        "type": "quantitative",
        "title": "Relative copy number of SARS-CoV-2 to PMMoV, %"
      }
    ]
  }
}
Owner: arnold
Modified 2021-06-04T10:21:28.982Z
Created 2021-03-15T16:19:23.591Z

DataGraphics version 0.9.5