Relative copy number of SARS-CoV-2 to PMMoV in Enköping

API
{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "data": {
    "url": "https://datagraphics.dc.scilifelab.se/api/dataset/0ac8fa02871745048491de74e5689da9.csv"
  },
  "transform": [
    {
      "filter": "datum.channel=='Enköping'"
    },
    {
      "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": [
          "Enköping"
        ],
        "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:10.333Z
Created 2021-04-14T15:11:25.770Z

DataGraphics 1.0.4