Graphic Weekly serology test numbers logs

API
Timestamp User Remote address User agent Added keys Updated items Removed items
2022-01-11T03:58:45.318Z arnold 10.42.3.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36
[]
{
  "specification": {
    "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
    "data": {
      "url": "https://datagraphics.dckube.scilifelab.se/api/dataset/6d6f551abc10413a97a6ab64ebac46bd.csv"
    },
    "transform": [
      {
        "calculate": "if(datum.class === 'positive', 0, if(datum.class === 'negative', 1, 2))",
        "as": "classOrder"
      },
      {
        "calculate": "if(datum.class === 'R&D', 'R&D*', datum.class)",
        "as": "classUpdated"
      }
    ],
    "width": 800,
    "height": 250,
    "mark": {
      "type": "bar"
    },
    "encoding": {
      "x": {
        "title": "Week",
        "field": "week",
        "type": "nominal",
        "axis": {
          "labelAngle": 0,
          "labelExpr": "datum.label[5]+datum.label[6]",
          "labelOverlap": "parity"
        }
      },
      "y": {
        "title": "Number of tests",
        "field": "count",
        "type": "quantitative",
        "axis": {
          "orient": "right"
        }
      },
      "color": {
        "field": "classUpdated",
        "type": "nominal",
        "scale": {
          "domain": [
            "R&D*",
            "negative",
            "positive"
          ],
          "range": [
            "#c7c7c7",
            "#8fd7f9",
            "#ef9292"
          ]
        },
        "legend": {
          "title": "Test results"
        }
      },
      "order": {
        "field": "classOrder",
        "type": "nominal"
      },
      "tooltip": [
        {
          "field": "week",
          "type": "nominal",
          "title": "Week"
        },
        {
          "field": "classUpdated",
          "type": "nominal",
          "title": "Test result"
        },
        {
          "field": "count",
          "type": "quantitative",
          "title": "Number of tests"
        }
      ]
    }
  }
}
{}
2021-08-30T12:16:50.208Z admin 10.42.2.1 Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36
[]
{
  "specification": {
    "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
    "data": {
      "url": "https://datagraphics.dckube.scilifelab.se/api/dataset/6d6f551abc10413a97a6ab64ebac46bd.csv"
    },
    "transform": [
      {
        "calculate": "if(datum.class === 'positive', 0, if(datum.class === 'negative', 1, 2))",
        "as": "classOrder"
      },
      {
        "calculate": "if(datum.class === 'R&D', 'R&D*', datum.class)",
        "as": "classUpdated"
      }
    ],
    "width": 800,
    "height": 250,
    "mark": {
      "type": "bar"
    },
    "encoding": {
      "x": {
        "title": "Week",
        "field": "week",
        "type": "nominal",
        "axis": {
          "labelAngle": 0,
          "labelExpr": "datum.label[5]+datum.label[6]"
        }
      },
      "y": {
        "title": "Number of tests",
        "field": "count",
        "type": "quantitative",
        "axis": {
          "orient": "right"
        }
      },
      "color": {
        "field": "classUpdated",
        "type": "nominal",
        "scale": {
          "domain": [
            "R&D*",
            "negative",
            "positive"
          ],
          "range": [
            "#c7c7c7",
            "#8fd7f9",
            "#ef9292"
          ]
        },
        "legend": {
          "title": "Test results"
        }
      },
      "order": {
        "field": "classOrder",
        "type": "nominal"
      },
      "tooltip": [
        {
          "field": "week",
          "type": "nominal",
          "title": "Week"
        },
        {
          "field": "classUpdated",
          "type": "nominal",
          "title": "Test result"
        },
        {
          "field": "count",
          "type": "quantitative",
          "title": "Number of tests"
        }
      ]
    }
  }
}
{}
2021-01-13T11:36:03.119Z arnold 10.42.3.0 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
[]
{
  "public": false
}
{}
2021-01-13T11:03:51.019Z arnold 10.42.2.0 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
[]
{
  "specification": {
    "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
    "data": {
      "url": "https://datagraphics.dckube.scilifelab.se/api/dataset/6d6f551abc10413a97a6ab64ebac46bd.csv"
    },
    "transform": [
      {
        "calculate": "if(datum.class === 'positive', 0, if(datum.class === 'negative', 1, 2))",
        "as": "classOrder"
      },
      {
        "calculate": "if(datum.class === 'R&D', 'R&D*', datum.class)",
        "as": "classUpdated"
      }
    ],
    "width": 800,
    "height": 250,
    "mark": {
      "type": "bar"
    },
    "encoding": {
      "x": {
        "title": "Week",
        "field": "week",
        "type": "nominal",
        "axis": {
          "labelAngle": 0,
          "labelExpr": "datum.label[6]"
        }
      },
      "y": {
        "title": "Number of tests",
        "field": "count",
        "type": "quantitative",
        "axis": {
          "orient": "right"
        }
      },
      "color": {
        "field": "classUpdated",
        "type": "nominal",
        "scale": {
          "domain": [
            "R&D*",
            "negative",
            "positive"
          ],
          "range": [
            "#c7c7c7",
            "#8fd7f9",
            "#ef9292"
          ]
        },
        "legend": {
          "title": "Test results"
        }
      },
      "order": {
        "field": "classOrder",
        "type": "nominal"
      },
      "tooltip": [
        {
          "field": "week",
          "type": "nominal",
          "title": "Week"
        },
        {
          "field": "classUpdated",
          "type": "nominal",
          "title": "Test result"
        },
        {
          "field": "count",
          "type": "quantitative",
          "title": "Number of tests"
        }
      ]
    }
  }
}
{}
2021-01-13T11:03:34.471Z arnold 10.42.2.0 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
[]
{
  "specification": {
    "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
    "data": {
      "url": "https://datagraphics.dckube.scilifelab.se/api/dataset/6d6f551abc10413a97a6ab64ebac46bd.csv"
    },
    "transform": [
      {
        "calculate": "if(datum.class === 'positive', 0, if(datum.class === 'negative', 1, 2))",
        "as": "classOrder"
      },
      {
        "calculate": "if(datum.class === 'R&D', 'R&D*', datum.class)",
        "as": "classUpdated"
      }
    ],
    "width": 800,
    "height": 250,
    "mark": {
      "type": "bar"
    },
    "encoding": {
      "x": {
        "title": "Week",
        "field": "week",
        "type": "nominal",
        "axis": {
          "labelAngle": 0,
          "labelExpr": "substring(datum.label, 5[, 6])"
        }
      },
      "y": {
        "title": "Number of tests",
        "field": "count",
        "type": "quantitative",
        "axis": {
          "orient": "right"
        }
      },
      "color": {
        "field": "classUpdated",
        "type": "nominal",
        "scale": {
          "domain": [
            "R&D*",
            "negative",
            "positive"
          ],
          "range": [
            "#c7c7c7",
            "#8fd7f9",
            "#ef9292"
          ]
        },
        "legend": {
          "title": "Test results"
        }
      },
      "order": {
        "field": "classOrder",
        "type": "nominal"
      },
      "tooltip": [
        {
          "field": "week",
          "type": "nominal",
          "title": "Week"
        },
        {
          "field": "classUpdated",
          "type": "nominal",
          "title": "Test result"
        },
        {
          "field": "count",
          "type": "quantitative",
          "title": "Number of tests"
        }
      ]
    }
  }
}
{}
2021-01-13T11:03:00.482Z arnold 10.42.2.0 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
[]
{
  "specification": {
    "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
    "data": {
      "url": "https://datagraphics.dckube.scilifelab.se/api/dataset/6d6f551abc10413a97a6ab64ebac46bd.csv"
    },
    "transform": [
      {
        "calculate": "if(datum.class === 'positive', 0, if(datum.class === 'negative', 1, 2))",
        "as": "classOrder"
      },
      {
        "calculate": "if(datum.class === 'R&D', 'R&D*', datum.class)",
        "as": "classUpdated"
      }
    ],
    "width": 800,
    "height": 250,
    "mark": {
      "type": "bar"
    },
    "encoding": {
      "x": {
        "title": "Week",
        "field": "week",
        "type": "nominal",
        "axis": {
          "labelAngle": 0,
          "labelExpr": "datum.label"
        }
      },
      "y": {
        "title": "Number of tests",
        "field": "count",
        "type": "quantitative",
        "axis": {
          "orient": "right"
        }
      },
      "color": {
        "field": "classUpdated",
        "type": "nominal",
        "scale": {
          "domain": [
            "R&D*",
            "negative",
            "positive"
          ],
          "range": [
            "#c7c7c7",
            "#8fd7f9",
            "#ef9292"
          ]
        },
        "legend": {
          "title": "Test results"
        }
      },
      "order": {
        "field": "classOrder",
        "type": "nominal"
      },
      "tooltip": [
        {
          "field": "week",
          "type": "nominal",
          "title": "Week"
        },
        {
          "field": "classUpdated",
          "type": "nominal",
          "title": "Test result"
        },
        {
          "field": "count",
          "type": "quantitative",
          "title": "Number of tests"
        }
      ]
    }
  }
}
{}
2021-01-13T11:02:24.922Z arnold 10.42.2.0 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
[]
{
  "specification": {
    "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
    "data": {
      "url": "https://datagraphics.dckube.scilifelab.se/api/dataset/6d6f551abc10413a97a6ab64ebac46bd.csv"
    },
    "transform": [
      {
        "calculate": "if(datum.class === 'positive', 0, if(datum.class === 'negative', 1, 2))",
        "as": "classOrder"
      },
      {
        "calculate": "if(datum.class === 'R&D', 'R&D*', datum.class)",
        "as": "classUpdated"
      }
    ],
    "width": 800,
    "height": 250,
    "mark": {
      "type": "bar"
    },
    "encoding": {
      "x": {
        "title": "Week",
        "field": "week",
        "type": "nominal",
        "axis": {
          "labelAngle": 0,
          "labelExpr": "substring(datum, 5[, 6])"
        }
      },
      "y": {
        "title": "Number of tests",
        "field": "count",
        "type": "quantitative",
        "axis": {
          "orient": "right"
        }
      },
      "color": {
        "field": "classUpdated",
        "type": "nominal",
        "scale": {
          "domain": [
            "R&D*",
            "negative",
            "positive"
          ],
          "range": [
            "#c7c7c7",
            "#8fd7f9",
            "#ef9292"
          ]
        },
        "legend": {
          "title": "Test results"
        }
      },
      "order": {
        "field": "classOrder",
        "type": "nominal"
      },
      "tooltip": [
        {
          "field": "week",
          "type": "nominal",
          "title": "Week"
        },
        {
          "field": "classUpdated",
          "type": "nominal",
          "title": "Test result"
        },
        {
          "field": "count",
          "type": "quantitative",
          "title": "Number of tests"
        }
      ]
    }
  }
}
{}
2021-01-13T11:01:20.575Z arnold 10.42.2.0 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
[]
{
  "specification": {
    "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
    "data": {
      "url": "https://datagraphics.dckube.scilifelab.se/api/dataset/6d6f551abc10413a97a6ab64ebac46bd.csv"
    },
    "transform": [
      {
        "calculate": "if(datum.class === 'positive', 0, if(datum.class === 'negative', 1, 2))",
        "as": "classOrder"
      },
      {
        "calculate": "if(datum.class === 'R&D', 'R&D*', datum.class)",
        "as": "classUpdated"
      }
    ],
    "width": 800,
    "height": 250,
    "mark": {
      "type": "bar"
    },
    "encoding": {
      "x": {
        "title": "Week",
        "field": "week",
        "type": "nominal",
        "axis": {
          "labelAngle": 0,
          "labelExpr": "slice(datum, 5[, 6])"
        }
      },
      "y": {
        "title": "Number of tests",
        "field": "count",
        "type": "quantitative",
        "axis": {
          "orient": "right"
        }
      },
      "color": {
        "field": "classUpdated",
        "type": "nominal",
        "scale": {
          "domain": [
            "R&D*",
            "negative",
            "positive"
          ],
          "range": [
            "#c7c7c7",
            "#8fd7f9",
            "#ef9292"
          ]
        },
        "legend": {
          "title": "Test results"
        }
      },
      "order": {
        "field": "classOrder",
        "type": "nominal"
      },
      "tooltip": [
        {
          "field": "week",
          "type": "nominal",
          "title": "Week"
        },
        {
          "field": "classUpdated",
          "type": "nominal",
          "title": "Test result"
        },
        {
          "field": "count",
          "type": "quantitative",
          "title": "Number of tests"
        }
      ]
    }
  }
}
{}
2021-01-13T11:00:40.420Z arnold 10.42.2.0 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
[]
{
  "specification": {
    "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
    "data": {
      "url": "https://datagraphics.dckube.scilifelab.se/api/dataset/6d6f551abc10413a97a6ab64ebac46bd.csv"
    },
    "transform": [
      {
        "calculate": "if(datum.class === 'positive', 0, if(datum.class === 'negative', 1, 2))",
        "as": "classOrder"
      },
      {
        "calculate": "if(datum.class === 'R&D', 'R&D*', datum.class)",
        "as": "classUpdated"
      }
    ],
    "width": 800,
    "height": 250,
    "mark": {
      "type": "bar"
    },
    "encoding": {
      "x": {
        "title": "Week",
        "field": "week",
        "type": "nominal",
        "axis": {
          "labelAngle": 0,
          "labelExpr": "datum.label[6]"
        }
      },
      "y": {
        "title": "Number of tests",
        "field": "count",
        "type": "quantitative",
        "axis": {
          "orient": "right"
        }
      },
      "color": {
        "field": "classUpdated",
        "type": "nominal",
        "scale": {
          "domain": [
            "R&D*",
            "negative",
            "positive"
          ],
          "range": [
            "#c7c7c7",
            "#8fd7f9",
            "#ef9292"
          ]
        },
        "legend": {
          "title": "Test results"
        }
      },
      "order": {
        "field": "classOrder",
        "type": "nominal"
      },
      "tooltip": [
        {
          "field": "week",
          "type": "nominal",
          "title": "Week"
        },
        {
          "field": "classUpdated",
          "type": "nominal",
          "title": "Test result"
        },
        {
          "field": "count",
          "type": "quantitative",
          "title": "Number of tests"
        }
      ]
    }
  }
}
{}
2021-01-13T10:58:46.065Z arnold 10.42.2.0 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
[]
{
  "specification": {
    "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
    "data": {
      "url": "https://datagraphics.dckube.scilifelab.se/api/dataset/6d6f551abc10413a97a6ab64ebac46bd.csv"
    },
    "transform": [
      {
        "calculate": "if(datum.class === 'positive', 0, if(datum.class === 'negative', 1, 2))",
        "as": "classOrder"
      },
      {
        "calculate": "if(datum.class === 'R&D', 'R&D*', datum.class)",
        "as": "classUpdated"
      }
    ],
    "width": 800,
    "height": 250,
    "mark": {
      "type": "bar"
    },
    "encoding": {
      "x": {
        "title": "Week",
        "field": "week",
        "type": "nominal",
        "axis": {
          "labelAngle": 0,
          "labelExpr": "datum.label[5:6]"
        }
      },
      "y": {
        "title": "Number of tests",
        "field": "count",
        "type": "quantitative",
        "axis": {
          "orient": "right"
        }
      },
      "color": {
        "field": "classUpdated",
        "type": "nominal",
        "scale": {
          "domain": [
            "R&D*",
            "negative",
            "positive"
          ],
          "range": [
            "#c7c7c7",
            "#8fd7f9",
            "#ef9292"
          ]
        },
        "legend": {
          "title": "Test results"
        }
      },
      "order": {
        "field": "classOrder",
        "type": "nominal"
      },
      "tooltip": [
        {
          "field": "week",
          "type": "nominal",
          "title": "Week"
        },
        {
          "field": "classUpdated",
          "type": "nominal",
          "title": "Test result"
        },
        {
          "field": "count",
          "type": "quantitative",
          "title": "Number of tests"
        }
      ]
    }
  }
}
{}
2021-01-13T10:58:34.913Z arnold 10.42.2.0 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
[]
{
  "specification": {
    "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
    "data": {
      "url": "https://datagraphics.dckube.scilifelab.se/api/dataset/6d6f551abc10413a97a6ab64ebac46bd.csv"
    },
    "transform": [
      {
        "calculate": "if(datum.class === 'positive', 0, if(datum.class === 'negative', 1, 2))",
        "as": "classOrder"
      },
      {
        "calculate": "if(datum.class === 'R&D', 'R&D*', datum.class)",
        "as": "classUpdated"
      }
    ],
    "width": 800,
    "height": 250,
    "mark": {
      "type": "bar"
    },
    "encoding": {
      "x": {
        "title": "Week",
        "field": "week",
        "type": "nominal",
        "axis": {
          "labelAngle": 0,
          "labelExpr": "datum.label[5]"
        }
      },
      "y": {
        "title": "Number of tests",
        "field": "count",
        "type": "quantitative",
        "axis": {
          "orient": "right"
        }
      },
      "color": {
        "field": "classUpdated",
        "type": "nominal",
        "scale": {
          "domain": [
            "R&D*",
            "negative",
            "positive"
          ],
          "range": [
            "#c7c7c7",
            "#8fd7f9",
            "#ef9292"
          ]
        },
        "legend": {
          "title": "Test results"
        }
      },
      "order": {
        "field": "classOrder",
        "type": "nominal"
      },
      "tooltip": [
        {
          "field": "week",
          "type": "nominal",
          "title": "Week"
        },
        {
          "field": "classUpdated",
          "type": "nominal",
          "title": "Test result"
        },
        {
          "field": "count",
          "type": "quantitative",
          "title": "Number of tests"
        }
      ]
    }
  }
}
{}
2021-01-13T10:52:17.915Z arnold 10.42.2.0 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
[]
{
  "specification": {
    "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
    "data": {
      "url": "https://datagraphics.dckube.scilifelab.se/api/dataset/6d6f551abc10413a97a6ab64ebac46bd.csv"
    },
    "transform": [
      {
        "calculate": "if(datum.class === 'positive', 0, if(datum.class === 'negative', 1, 2))",
        "as": "classOrder"
      },
      {
        "calculate": "if(datum.class === 'R&D', 'R&D*', datum.class)",
        "as": "classUpdated"
      }
    ],
    "width": 800,
    "height": 250,
    "mark": {
      "type": "bar"
    },
    "encoding": {
      "x": {
        "title": "Week",
        "field": "week",
        "type": "nominal",
        "axis": {
          "labelAngle": 0,
          "labelExpr": "datum.label[5,6]"
        }
      },
      "y": {
        "title": "Number of tests",
        "field": "count",
        "type": "quantitative",
        "axis": {
          "orient": "right"
        }
      },
      "color": {
        "field": "classUpdated",
        "type": "nominal",
        "scale": {
          "domain": [
            "R&D*",
            "negative",
            "positive"
          ],
          "range": [
            "#c7c7c7",
            "#8fd7f9",
            "#ef9292"
          ]
        },
        "legend": {
          "title": "Test results"
        }
      },
      "order": {
        "field": "classOrder",
        "type": "nominal"
      },
      "tooltip": [
        {
          "field": "week",
          "type": "nominal",
          "title": "Week"
        },
        {
          "field": "classUpdated",
          "type": "nominal",
          "title": "Test result"
        },
        {
          "field": "count",
          "type": "quantitative",
          "title": "Number of tests"
        }
      ]
    }
  }
}
{}
2021-01-13T10:52:03.347Z arnold 10.42.2.0 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
[]
{
  "specification": {
    "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
    "data": {
      "url": "https://datagraphics.dckube.scilifelab.se/api/dataset/6d6f551abc10413a97a6ab64ebac46bd.csv"
    },
    "transform": [
      {
        "calculate": "if(datum.class === 'positive', 0, if(datum.class === 'negative', 1, 2))",
        "as": "classOrder"
      },
      {
        "calculate": "if(datum.class === 'R&D', 'R&D*', datum.class)",
        "as": "classUpdated"
      }
    ],
    "width": 800,
    "height": 250,
    "mark": {
      "type": "bar"
    },
    "encoding": {
      "x": {
        "title": "Week",
        "field": "week",
        "type": "nominal",
        "axis": {
          "labelAngle": 0,
          "labelExpr": "datum.label[6]"
        }
      },
      "y": {
        "title": "Number of tests",
        "field": "count",
        "type": "quantitative",
        "axis": {
          "orient": "right"
        }
      },
      "color": {
        "field": "classUpdated",
        "type": "nominal",
        "scale": {
          "domain": [
            "R&D*",
            "negative",
            "positive"
          ],
          "range": [
            "#c7c7c7",
            "#8fd7f9",
            "#ef9292"
          ]
        },
        "legend": {
          "title": "Test results"
        }
      },
      "order": {
        "field": "classOrder",
        "type": "nominal"
      },
      "tooltip": [
        {
          "field": "week",
          "type": "nominal",
          "title": "Week"
        },
        {
          "field": "classUpdated",
          "type": "nominal",
          "title": "Test result"
        },
        {
          "field": "count",
          "type": "quantitative",
          "title": "Number of tests"
        }
      ]
    }
  }
}
{}
2021-01-13T10:51:30.756Z arnold 10.42.2.0 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
[]
{
  "specification": {
    "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
    "data": {
      "url": "https://datagraphics.dckube.scilifelab.se/api/dataset/6d6f551abc10413a97a6ab64ebac46bd.csv"
    },
    "transform": [
      {
        "calculate": "if(datum.class === 'positive', 0, if(datum.class === 'negative', 1, 2))",
        "as": "classOrder"
      },
      {
        "calculate": "if(datum.class === 'R&D', 'R&D*', datum.class)",
        "as": "classUpdated"
      }
    ],
    "width": 800,
    "height": 250,
    "mark": {
      "type": "bar"
    },
    "encoding": {
      "x": {
        "title": "Week",
        "field": "week",
        "type": "nominal",
        "axis": {
          "labelAngle": 0,
          "labelExpr": "datum.label[0]"
        }
      },
      "y": {
        "title": "Number of tests",
        "field": "count",
        "type": "quantitative",
        "axis": {
          "orient": "right"
        }
      },
      "color": {
        "field": "classUpdated",
        "type": "nominal",
        "scale": {
          "domain": [
            "R&D*",
            "negative",
            "positive"
          ],
          "range": [
            "#c7c7c7",
            "#8fd7f9",
            "#ef9292"
          ]
        },
        "legend": {
          "title": "Test results"
        }
      },
      "order": {
        "field": "classOrder",
        "type": "nominal"
      },
      "tooltip": [
        {
          "field": "week",
          "type": "nominal",
          "title": "Week"
        },
        {
          "field": "classUpdated",
          "type": "nominal",
          "title": "Test result"
        },
        {
          "field": "count",
          "type": "quantitative",
          "title": "Number of tests"
        }
      ]
    }
  }
}
{}
2021-01-13T10:51:20.615Z arnold 10.42.2.0 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
[]
{
  "specification": {
    "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
    "data": {
      "url": "https://datagraphics.dckube.scilifelab.se/api/dataset/6d6f551abc10413a97a6ab64ebac46bd.csv"
    },
    "transform": [
      {
        "calculate": "if(datum.class === 'positive', 0, if(datum.class === 'negative', 1, 2))",
        "as": "classOrder"
      },
      {
        "calculate": "if(datum.class === 'R&D', 'R&D*', datum.class)",
        "as": "classUpdated"
      }
    ],
    "width": 800,
    "height": 250,
    "mark": {
      "type": "bar"
    },
    "encoding": {
      "x": {
        "title": "Week",
        "field": "week",
        "type": "nominal",
        "axis": {
          "labelAngle": 0
        }
      },
      "y": {
        "title": "Number of tests",
        "field": "count",
        "type": "quantitative",
        "axis": {
          "orient": "right"
        }
      },
      "color": {
        "field": "classUpdated",
        "type": "nominal",
        "scale": {
          "domain": [
            "R&D*",
            "negative",
            "positive"
          ],
          "range": [
            "#c7c7c7",
            "#8fd7f9",
            "#ef9292"
          ]
        },
        "legend": {
          "title": "Test results"
        }
      },
      "order": {
        "field": "classOrder",
        "type": "nominal"
      },
      "tooltip": [
        {
          "field": "week",
          "type": "nominal",
          "title": "Week"
        },
        {
          "field": "classUpdated",
          "type": "nominal",
          "title": "Test result"
        },
        {
          "field": "count",
          "type": "quantitative",
          "title": "Number of tests"
        }
      ]
    }
  }
}
{}
2021-01-12T15:31:59.251Z arnold 10.42.3.0 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
[]
{
  "title": "Weekly"
}
{}
2021-01-12T15:31:16.499Z arnold 10.42.3.0 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
[
  "doctype",
  "dataset",
  "created",
  "public",
  "title",
  "description",
  "error",
  "owner",
  "specification"
]
{}
{}

DataGraphics 0.14.3