Skip to content

Commit

Permalink
Added initial HRA growth vega lite visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
bherr2 committed May 24, 2024
1 parent 5e8b85f commit 2c41585
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion data/dashboards/data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ items:
- type: ImageContainer
title: HRA Growth Per Release
tooltip: I'm a tooltip
imageUrl: https://cdn.humanatlas.io/hra-dashboard-data/placeholder.svg
imageUrl: https://cdn.humanatlas.io/hra-dashboard-data/data/hra-growth.vl.json
- type: VegaContainer
title: Digital Objects Per Organ
tooltip: I'm a tooltip
Expand Down
25 changes: 25 additions & 0 deletions data/data/hra-growth.vl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {
"url": "https://cdn.humanatlas.io/hra-dashboard-data/data/hra-growth.csv"
},
"width": "container",
"height": "container",
"mark": { "type": "line", "point": false, "tooltip": true },
"transform": [
{
"window": [{ "op": "sum", "field": "count", "as": "cumulative_count" }],
"frame": [null, 0],
"sort": [{ "field": "date" }]
}
],
"encoding": {
"x": { "timeUnit": "yearmonth", "field": "date", "title": "Date" },
"y": {
"field": "cumulative_count",
"type": "quantitative",
"title": "Cumulative Count"
},
"color": { "field": "group", "type": "nominal", "title": "Measure" }
}
}

0 comments on commit 2c41585

Please sign in to comment.