{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {
"url": "https://datagraphics.dc.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)"
}
]
}
}