{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"description": "Risk Likelihood Scale Table",
"width": 350,
"height": 300,
"data": {
"values": [
{
"score": 1,
"likelihood": "Negligible",
"criteria": "0-5% extremely unlikely\nVirtually impossible (i.e. one off event)"
},
{
"score": 2,
"likelihood": "Low",
"criteria": "6-20% low but not impossible"
},
{
"score": 3,
"likelihood": "Medium",
"criteria": "21-50% fairly likely to occur"
},
{
"score": 4,
"likelihood": "High",
"criteria": "51-80% more likely to occur than not"
},
{
"score": 5,
"likelihood": "Severe",
"criteria": "81-100% almost certainly will occur"
}
]
},
"transform": [
{
"calculate": "datum.score + ' - ' + datum.likelihood",
"as": "label"
}
],
"vconcat": [
{
"layer": [
{
"mark": "rect",
"encoding": {
"y": {
"field": "score",
"type": "ordinal",
"title": "SCORE",
"sort": [
"1",
"2",
"3",
"4",
"5"
],
"axis": {
"labelAngle": 0
}
},
"x": {
"field": "likelihood",
"type": "nominal",
"title": "LIKELIHOOD",
"sort": [
"Negligible",
"Low",
"Medium",
"High",
"Severe"
]
},
"color": {
"field": "likelihood",
"type": "nominal",
"scale": {
"domain": [
"Negligible",
"Low",
"Medium",
"High",
"Severe"
],
"range": [
"#d0e6f5",
"#c4d693",
"#f2d14b",
"#f39b2c",
"#e94e40"
]
},
"legend": null
},
"size": {
"value": 200
}
}
},
{
"mark": {
"type": "text",
"align": "center",
"baseline": "middle",
"dx": 5
},
"encoding": {
"y": {
"field": "score",
"type": "ordinal",
"title": "SCORE",
"sort": [
"1",
"2",
"3",
"4",
"5"
],
"axis": {
"labelAngle": 0
}
},
"x": {
"field": "likelihood",
"type": "nominal",
"title": "LIKELIHOOD",
"sort": [
"Negligible",
"Low",
"Medium",
"High",
"Severe"
]
},
"text": {
"field": "likelihood",
"type": "nominal"
},
"color": {
"value": "black"
}
}
},
{
"mark": "text",
"encoding": {
"y": {
"field": "score",
"type": "ordinal",
"title": "SCORE",
"sort": [
"1",
"2",
"3",
"4",
"5"
]
},
"text": {
"field": "criteria"
},
"color": {
"value": "black"
},
"align": {
"value": "left"
},
"x": {
"value": 260
}
}
}
]
}
]
}