Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Vega-Lite spec from Thu Jun 04 2020
{
"config": {"view": {"continuousWidth": 400, "continuousHeight": 300}},
"data": {"name": "data-5c0a45d3b39e712b784c4dcdb003ced6"},
"mark": "bar",
"encoding": {
"color": {"type": "nominal", "field": "Disability"},
"x": {"type": "nominal", "field": "Police Force"},
"y": {"type": "quantitative", "field": "count"}
},
"title": "CED Usage by Force",
"$schema": "https://vega.github.io/schema/vega-lite/v4.8.1.json",
"datasets": {
"data-5c0a45d3b39e712b784c4dcdb003ced6": [
{"Police Force": "Avon & Somerset", "Disability": "Mental", "count": 97},
{"Police Force": "Bedfordshire", "Disability": "Mental", "count": 39},
{"Police Force": "Cambridgeshire", "Disability": "Mental", "count": 49},
{"Police Force": "Cheshire", "Disability": "Mental", "count": 92},
{"Police Force": "City of London", "Disability": "Mental", "count": 10},
{"Police Force": "Cleveland", "Disability": "Mental", "count": 36},
{"Police Force": "Cumbria", "Disability": "Mental", "count": 89},
{"Police Force": "Derbyshire", "Disability": "Mental", "count": 68},
{
"Police Force": "Devon & Cornwall ",
"Disability": "Mental",
"count": 270
},
{"Police Force": "Dorset", "Disability": "Mental", "count": 37},
{"Police Force": "Durham", "Disability": "Mental", "count": 22},
{"Police Force": "Dyfed-Powys", "Disability": "Mental", "count": 98},
{"Police Force": "Essex", "Disability": "Mental", "count": 39},
{"Police Force": "Gloucestershire", "Disability": "Mental", "count": 14},
{
"Police Force": "Greater Manchester",
"Disability": "Mental",
"count": 198
},
{"Police Force": "Gwent", "Disability": "Mental", "count": 13},
{"Police Force": "Hampshire", "Disability": "Mental", "count": 15},
{"Police Force": "Hertfordshire", "Disability": "Mental", "count": 63},
{"Police Force": "Humberside", "Disability": "Mental", "count": 69},
{"Police Force": "Kent", "Disability": "Mental", "count": 51},
{"Police Force": "Lancashire", "Disability": "Mental", "count": 173},
{"Police Force": "Leicestershire", "Disability": "Mental", "count": 59},
{"Police Force": "Lincolnshire", "Disability": "Mental", "count": 69},
{"Police Force": "Merseyside", "Disability": "Mental", "count": 126},
{"Police Force": "Metropolitan", "Disability": "Mental", "count": 1416},
{"Police Force": "Norfolk", "Disability": "Mental", "count": 0},
{"Police Force": "North Wales", "Disability": "Mental", "count": 33},
{"Police Force": "North Yorkshire", "Disability": "Mental", "count": 16},
{"Police Force": "Northamptonshire", "Disability": "Mental", "count": 98},
{"Police Force": "Northumbria", "Disability": "Mental", "count": 21},
{"Police Force": "Nottinghamshire", "Disability": "Mental", "count": 31},
{"Police Force": "South Wales", "Disability": "Mental", "count": 36},
{"Police Force": "South Yorkshire", "Disability": "Mental", "count": 79},
{"Police Force": "Staffordshire", "Disability": "Mental", "count": 0},
{"Police Force": "Suffolk", "Disability": "Mental", "count": 0},
{"Police Force": "Surrey", "Disability": "Mental", "count": 24},
{"Police Force": "Sussex", "Disability": "Mental", "count": 78},
{"Police Force": "Thames Valley", "Disability": "Mental", "count": 47},
{"Police Force": "Warwickshire", "Disability": "Mental", "count": 0},
{"Police Force": "West Mercia", "Disability": "Mental", "count": 0},
{"Police Force": "West Midlands", "Disability": "Mental", "count": 60},
{"Police Force": "West Yorkshire", "Disability": "Mental", "count": 269},
{"Police Force": "Wiltshire", "Disability": "Mental", "count": 27},
{"Police Force": "Avon & Somerset", "Disability": "Physical", "count": 1},
{"Police Force": "Bedfordshire", "Disability": "Physical", "count": 5},
{"Police Force": "Cambridgeshire", "Disability": "Physical", "count": 0},
{"Police Force": "Cheshire", "Disability": "Physical", "count": 4},
{"Police Force": "City of London", "Disability": "Physical", "count": 0},
{"Police Force": "Cleveland", "Disability": "Physical", "count": 1},
{"Police Force": "Cumbria", "Disability": "Physical", "count": 0},
{"Police Force": "Derbyshire", "Disability": "Physical", "count": 0},
{
"Police Force": "Devon & Cornwall ",
"Disability": "Physical",
"count": 4
},
{"Police Force": "Dorset", "Disability": "Physical", "count": 5},
{"Police Force": "Durham", "Disability": "Physical", "count": 0},
{"Police Force": "Dyfed-Powys", "Disability": "Physical", "count": 0},
{"Police Force": "Essex", "Disability": "Physical", "count": 1},
{"Police Force": "Gloucestershire", "Disability": "Physical", "count": 1},
{
"Police Force": "Greater Manchester",
"Disability": "Physical",
"count": 7
},
{"Police Force": "Gwent", "Disability": "Physical", "count": 0},
{"Police Force": "Hampshire", "Disability": "Physical", "count": 0},
{"Police Force": "Hertfordshire", "Disability": "Physical", "count": 2},
{"Police Force": "Humberside", "Disability": "Physical", "count": 1},
{"Police Force": "Kent", "Disability": "Physical", "count": 7},
{"Police Force": "Lancashire", "Disability": "Physical", "count": 0},
{"Police Force": "Leicestershire", "Disability": "Physical", "count": 6},
{"Police Force": "Lincolnshire", "Disability": "Physical", "count": 2},
{"Police Force": "Merseyside", "Disability": "Physical", "count": 1},
{"Police Force": "Metropolitan", "Disability": "Physical", "count": 41},
{"Police Force": "Norfolk", "Disability": "Physical", "count": 0},
{"Police Force": "North Wales", "Disability": "Physical", "count": 0},
{"Police Force": "North Yorkshire", "Disability": "Physical", "count": 1},
{
"Police Force": "Northamptonshire",
"Disability": "Physical",
"count": 4
},
{"Police Force": "Northumbria", "Disability": "Physical", "count": 0},
{"Police Force": "Nottinghamshire", "Disability": "Physical", "count": 1},
{"Police Force": "South Wales", "Disability": "Physical", "count": 5},
{"Police Force": "South Yorkshire", "Disability": "Physical", "count": 1},
{"Police Force": "Staffordshire", "Disability": "Physical", "count": 0},
{"Police Force": "Suffolk", "Disability": "Physical", "count": 0},
{"Police Force": "Surrey", "Disability": "Physical", "count": 2},
{"Police Force": "Sussex", "Disability": "Physical", "count": 2},
{"Police Force": "Thames Valley", "Disability": "Physical", "count": 3},
{"Police Force": "Warwickshire", "Disability": "Physical", "count": 0},
{"Police Force": "West Mercia", "Disability": "Physical", "count": 0},
{"Police Force": "West Midlands", "Disability": "Physical", "count": 5},
{"Police Force": "West Yorkshire", "Disability": "Physical", "count": 2},
{"Police Force": "Wiltshire", "Disability": "Physical", "count": 2},
{
"Police Force": "Avon & Somerset",
"Disability": "Physical and mental",
"count": 4
},
{
"Police Force": "Bedfordshire",
"Disability": "Physical and mental",
"count": 1
},
{
"Police Force": "Cambridgeshire",
"Disability": "Physical and mental",
"count": 2
},
{
"Police Force": "Cheshire",
"Disability": "Physical and mental",
"count": 3
},
{
"Police Force": "City of London",
"Disability": "Physical and mental",
"count": 0
},
{
"Police Force": "Cleveland",
"Disability": "Physical and mental",
"count": 1
},
{
"Police Force": "Cumbria",
"Disability": "Physical and mental",
"count": 3
},
{
"Police Force": "Derbyshire",
"Disability": "Physical and mental",
"count": 1
},
{
"Police Force": "Devon & Cornwall ",
"Disability": "Physical and mental",
"count": 8
},
{
"Police Force": "Dorset",
"Disability": "Physical and mental",
"count": 2
},
{
"Police Force": "Durham",
"Disability": "Physical and mental",
"count": 0
},
{
"Police Force": "Dyfed-Powys",
"Disability": "Physical and mental",
"count": 3
},
{
"Police Force": "Essex",
"Disability": "Physical and mental",
"count": 2
},
{
"Police Force": "Gloucestershire",
"Disability": "Physical and mental",
"count": 1
},
{
"Police Force": "Greater Manchester",
"Disability": "Physical and mental",
"count": 5
},
{
"Police Force": "Gwent",
"Disability": "Physical and mental",
"count": 0
},
{
"Police Force": "Hampshire",
"Disability": "Physical and mental",
"count": 0
},
{
"Police Force": "Hertfordshire",
"Disability": "Physical and mental",
"count": 4
},
{
"Police Force": "Humberside",
"Disability": "Physical and mental",
"count": 4
},
{"Police Force": "Kent", "Disability": "Physical and mental", "count": 0},
{
"Police Force": "Lancashire",
"Disability": "Physical and mental",
"count": 4
},
{
"Police Force": "Leicestershire",
"Disability": "Physical and mental",
"count": 3
},
{
"Police Force": "Lincolnshire",
"Disability": "Physical and mental",
"count": 2
},
{
"Police Force": "Merseyside",
"Disability": "Physical and mental",
"count": 4
},
{
"Police Force": "Metropolitan",
"Disability": "Physical and mental",
"count": 33
},
{
"Police Force": "Norfolk",
"Disability": "Physical and mental",
"count": 0
},
{
"Police Force": "North Wales",
"Disability": "Physical and mental",
"count": 0
},
{
"Police Force": "North Yorkshire",
"Disability": "Physical and mental",
"count": 2
},
{
"Police Force": "Northamptonshire",
"Disability": "Physical and mental",
"count": 4
},
{
"Police Force": "Northumbria",
"Disability": "Physical and mental",
"count": 0
},
{
"Police Force": "Nottinghamshire",
"Disability": "Physical and mental",
"count": 1
},
{
"Police Force": "South Wales",
"Disability": "Physical and mental",
"count": 2
},
{
"Police Force": "South Yorkshire",
"Disability": "Physical and mental",
"count": 2
},
{
"Police Force": "Staffordshire",
"Disability": "Physical and mental",
"count": 0
},
{
"Police Force": "Suffolk",
"Disability": "Physical and mental",
"count": 0
},
{
"Police Force": "Surrey",
"Disability": "Physical and mental",
"count": 0
},
{
"Police Force": "Sussex",
"Disability": "Physical and mental",
"count": 4
},
{
"Police Force": "Thames Valley",
"Disability": "Physical and mental",
"count": 5
},
{
"Police Force": "Warwickshire",
"Disability": "Physical and mental",
"count": 0
},
{
"Police Force": "West Mercia",
"Disability": "Physical and mental",
"count": 0
},
{
"Police Force": "West Midlands",
"Disability": "Physical and mental",
"count": 3
},
{
"Police Force": "West Yorkshire",
"Disability": "Physical and mental",
"count": 3
},
{
"Police Force": "Wiltshire",
"Disability": "Physical and mental",
"count": 3
},
{"Police Force": "Avon & Somerset", "Disability": "None", "count": 623},
{"Police Force": "Bedfordshire", "Disability": "None", "count": 203},
{"Police Force": "Cambridgeshire", "Disability": "None", "count": 154},
{"Police Force": "Cheshire", "Disability": "None", "count": 337},
{"Police Force": "City of London", "Disability": "None", "count": 39},
{"Police Force": "Cleveland", "Disability": "None", "count": 211},
{"Police Force": "Cumbria", "Disability": "None", "count": 122},
{"Police Force": "Derbyshire", "Disability": "None", "count": 84},
{"Police Force": "Devon & Cornwall ", "Disability": "None", "count": 414},
{"Police Force": "Dorset", "Disability": "None", "count": 208},
{"Police Force": "Durham", "Disability": "None", "count": 282},
{"Police Force": "Dyfed-Powys", "Disability": "None", "count": 120},
{"Police Force": "Essex", "Disability": "None", "count": 205},
{"Police Force": "Gloucestershire", "Disability": "None", "count": 121},
{
"Police Force": "Greater Manchester",
"Disability": "None",
"count": 1232
},
{"Police Force": "Gwent", "Disability": "None", "count": 158},
{"Police Force": "Hampshire", "Disability": "None", "count": 194},
{"Police Force": "Hertfordshire", "Disability": "None", "count": 228},
{"Police Force": "Humberside", "Disability": "None", "count": 498},
{"Police Force": "Kent", "Disability": "None", "count": 530},
{"Police Force": "Lancashire", "Disability": "None", "count": 249},
{"Police Force": "Leicestershire", "Disability": "None", "count": 547},
{"Police Force": "Lincolnshire", "Disability": "None", "count": 194},
{"Police Force": "Merseyside", "Disability": "None", "count": 190},
{"Police Force": "Metropolitan", "Disability": "None", "count": 5906},
{"Police Force": "Norfolk", "Disability": "None", "count": 0},
{"Police Force": "North Wales", "Disability": "None", "count": 97},
{"Police Force": "North Yorkshire", "Disability": "None", "count": 227},
{"Police Force": "Northamptonshire", "Disability": "None", "count": 454},
{"Police Force": "Northumbria", "Disability": "None", "count": 221},
{"Police Force": "Nottinghamshire", "Disability": "None", "count": 164},
{"Police Force": "South Wales", "Disability": "None", "count": 424},
{"Police Force": "South Yorkshire", "Disability": "None", "count": 428},
{"Police Force": "Staffordshire", "Disability": "None", "count": 0},
{"Police Force": "Suffolk", "Disability": "None", "count": 0},
{"Police Force": "Surrey", "Disability": "None", "count": 261},
{"Police Force": "Sussex", "Disability": "None", "count": 307},
{"Police Force": "Thames Valley", "Disability": "None", "count": 723},
{"Police Force": "Warwickshire", "Disability": "None", "count": 0},
{"Police Force": "West Mercia", "Disability": "None", "count": 0},
{"Police Force": "West Midlands", "Disability": "None", "count": 638},
{"Police Force": "West Yorkshire", "Disability": "None", "count": 502},
{"Police Force": "Wiltshire", "Disability": "None", "count": 211},
{
"Police Force": "Avon & Somerset",
"Disability": "Not reported",
"count": 8
},
{
"Police Force": "Bedfordshire",
"Disability": "Not reported",
"count": 0
},
{
"Police Force": "Cambridgeshire",
"Disability": "Not reported",
"count": 0
},
{"Police Force": "Cheshire", "Disability": "Not reported", "count": 2},
{
"Police Force": "City of London",
"Disability": "Not reported",
"count": 0
},
{"Police Force": "Cleveland", "Disability": "Not reported", "count": 0},
{"Police Force": "Cumbria", "Disability": "Not reported", "count": 0},
{"Police Force": "Derbyshire", "Disability": "Not reported", "count": 0},
{
"Police Force": "Devon & Cornwall ",
"Disability": "Not reported",
"count": 0
},
{"Police Force": "Dorset", "Disability": "Not reported", "count": 0},
{"Police Force": "Durham", "Disability": "Not reported", "count": 0},
{"Police Force": "Dyfed-Powys", "Disability": "Not reported", "count": 0},
{"Police Force": "Essex", "Disability": "Not reported", "count": 0},
{
"Police Force": "Gloucestershire",
"Disability": "Not reported",
"count": 0
},
{
"Police Force": "Greater Manchester",
"Disability": "Not reported",
"count": 0
},
{"Police Force": "Gwent", "Disability": "Not reported", "count": 0},
{"Police Force": "Hampshire", "Disability": "Not reported", "count": 0},
{
"Police Force": "Hertfordshire",
"Disability": "Not reported",
"count": 0
},
{"Police Force": "Humberside", "Disability": "Not reported", "count": 0},
{"Police Force": "Kent", "Disability": "Not reported", "count": 0},
{"Police Force": "Lancashire", "Disability": "Not reported", "count": 2},
{
"Police Force": "Leicestershire",
"Disability": "Not reported",
"count": 0
},
{
"Police Force": "Lincolnshire",
"Disability": "Not reported",
"count": 0
},
{"Police Force": "Merseyside", "Disability": "Not reported", "count": 0},
{
"Police Force": "Metropolitan",
"Disability": "Not reported",
"count": 0
},
{"Police Force": "Norfolk", "Disability": "Not reported", "count": 0},
{"Police Force": "North Wales", "Disability": "Not reported", "count": 0},
{
"Police Force": "North Yorkshire",
"Disability": "Not reported",
"count": 0
},
{
"Police Force": "Northamptonshire",
"Disability": "Not reported",
"count": 0
},
{"Police Force": "Northumbria", "Disability": "Not reported", "count": 0},
{
"Police Force": "Nottinghamshire",
"Disability": "Not reported",
"count": 0
},
{"Police Force": "South Wales", "Disability": "Not reported", "count": 0},
{
"Police Force": "South Yorkshire",
"Disability": "Not reported",
"count": 0
},
{
"Police Force": "Staffordshire",
"Disability": "Not reported",
"count": 0
},
{"Police Force": "Suffolk", "Disability": "Not reported", "count": 0},
{"Police Force": "Surrey", "Disability": "Not reported", "count": 0},
{"Police Force": "Sussex", "Disability": "Not reported", "count": 0},
{
"Police Force": "Thames Valley",
"Disability": "Not reported",
"count": 0
},
{
"Police Force": "Warwickshire",
"Disability": "Not reported",
"count": 0
},
{"Police Force": "West Mercia", "Disability": "Not reported", "count": 0},
{
"Police Force": "West Midlands",
"Disability": "Not reported",
"count": 0
},
{
"Police Force": "West Yorkshire",
"Disability": "Not reported",
"count": 8
},
{"Police Force": "Wiltshire", "Disability": "Not reported", "count": 66}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment