diff --git a/data/dashboards/data.yaml b/data/dashboards/data.yaml index 59819a8..2b8e6b4 100644 --- a/data/dashboards/data.yaml +++ b/data/dashboards/data.yaml @@ -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 diff --git a/data/data/hra-growth.vl.json b/data/data/hra-growth.vl.json new file mode 100644 index 0000000..9fd1f2e --- /dev/null +++ b/data/data/hra-growth.vl.json @@ -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" } + } +}