Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
NHS England Covid Deaths
{
"config": {"view": {"continuousWidth": 400, "continuousHeight": 300}},
"data": {"name": "data-9f7cabe0332f8f1e8f65ae37f185d2a2"},
"mark": "bar",
"encoding": {
"color": {"type": "nominal", "field": "Condition"},
"column": {"type": "nominal", "field": "Condition"},
"tooltip": {"type": "quantitative", "field": "sum"},
"x": {"type": "nominal", "field": "Age group"},
"y": {"type": "quantitative", "field": "sum"}
},
"title": "Deaths From Covid in England - All data up to 5pm 2 June 2020",
"width": 400,
"$schema": "https://vega.github.io/schema/vega-lite/v4.8.1.json",
"datasets": {
"data-9f7cabe0332f8f1e8f65ae37f185d2a2": [
{"Age group": "0-19", "Condition": "Pre-existing Condition", "sum": 15},
{"Age group": "20-39", "Condition": "Pre-existing Condition", "sum": 158},
{
"Age group": "40-59",
"Condition": "Pre-existing Condition",
"sum": 1873
},
{
"Age group": "60-79",
"Condition": "Pre-existing Condition",
"sum": 9778
},
{"Age group": "80+", "Condition": "Pre-existing Condition", "sum": 13903},
{"Age group": "0-19", "Condition": "No Pre-existing Condition", "sum": 3},
{
"Age group": "20-39",
"Condition": "No Pre-existing Condition",
"sum": 32
},
{
"Age group": "40-59",
"Condition": "No Pre-existing Condition",
"sum": 255
},
{
"Age group": "60-79",
"Condition": "No Pre-existing Condition",
"sum": 551
},
{"Age group": "80+", "Condition": "No Pre-existing Condition", "sum": 477}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment