Stockholm weekly Gene copy number/week (raw wastewater) with bovine + PMMoV factor, small

API
{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "data": {
    "url": "https://datagraphics.dckube.scilifelab.se/api/dataset/dffbdd49d0a84b69804ec977d6b42f70.csv"
  },
  "width": 450,
  "height": 200,
  "transform": [
    {
      "calculate": "datum.gene_copy_number/1000000000000000000",
      "as": "gene_copy_number_div"
    },
    {
      "window": [
        {
          "op": "rank",
          "as": "rank"
        }
      ],
      "sort": [
        {
          "field": "week",
          "order": "descending"
        }
      ]
    },
    {
      "filter": "datum.rank <= 30"
    }
  ],
  "mark": {
    "type": "bar"
  },
  "encoding": {
    "x": {
      "title": "Week",
      "field": "week",
      "type": "nominal"
    },
    "y": {
      "title": "Gene copy number with bovine + PMMoV factor (× 10^18)",
      "field": "gene_copy_number_div",
      "type": "quantitative",
      "axis": {
        "orient": "right"
      }
    },
    "color": {
      "field": "channel",
      "type": "nominal",
      "scale": {
        "range": [
          "#8fd7f9"
        ]
      },
      "legend": null
    },
    "tooltip": [
      {
        "field": "week",
        "type": "nominal",
        "title": "Week"
      },
      {
        "field": "gene_copy_number_div",
        "type": "quantitative",
        "title": "Gene copy number with bovine + PMMoV factor (× 10^18)"
      }
    ]
  }
}
Owner: arnold
Modified 2021-09-16T07:51:56.719Z
Created 2021-04-01T07:56:50.390Z

DataGraphics 0.14.3