Relative copy number of SARS-CoV-2 to PPMoV in various municipalities in Sweden, log scale

API
{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "config": {
    "view": {
      "stroke": null
    }
  },
  "data": {
    "url": "https://datagraphics.dckube.scilifelab.se/api/dataset/0ac8fa02871745048491de74e5689da9.csv"
  },
  "height": 280,
  "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 <= 184"
    }
  ],
  "encoding": {
    "color": {
      "condition": {
        "field": "channel",
        "param": "hover",
        "title": "Municipality",
        "type": "nominal"
      },
      "value": "grey"
    },
    "opacity": {
      "condition": {
        "param": "hover",
        "value": 1
      },
      "value": 0.2
    },
    "x": {
      "field": "week",
      "title": "Week",
      "type": "nominal"
    },
    "y": {
      "field": "relative_copy_number",
      "scale": {
        "type": "log"
      },
      "title": "Relative copy number of SARS-CoV-2 to PMMoV, %, log",
      "type": "quantitative"
    }
  },
  "layer": [
    {
      "description": "transparent layer to make it easier to trigger selection",
      "mark": {
        "point": {
          "filled": true,
          "size": 80
        },
        "stroke": "transparent",
        "strokeWidth": 8,
        "tooltip": true,
        "type": "line"
      },
      "params": [
        {
          "name": "hover",
          "select": {
            "fields": [
              "channel"
            ],
            "on": "mouseover",
            "type": "point"
          },
          "value": [
            {
              "channel": "Uppsala"
            }
          ]
        }
      ]
    },
    {
      "mark": "line"
    }
  ]
}
Owner: arnold
Modified 2021-09-15T14:50:10.862Z
Created 2021-06-28T17:29:44.855Z

DataGraphics version 0.10.2