AS-AD with Supply Shock
Aggregate supply / aggregate demand with a leftward supply shift.
Rendering…
Make it your own.
{
"$schema":"https://vega.github.io/schema/vega-lite/v5.json",
"data":{"values":[
{"q":0,"p":1,"k":"AD"},{"q":20,"p":5,"k":"AD"},
{"q":0,"p":5,"k":"AS_original"},{"q":20,"p":1,"k":"AS_original"},
{"q":0,"p":6,"k":"AS_shock"}, {"q":20,"p":2,"k":"AS_shock"}
]},
"mark":{"type":"line","strokeWidth":3},
"encoding":{
"x":{"field":"q","type":"quantitative","title":"Output (Q)"},
"y":{"field":"p","type":"quantitative","title":"Price level (P)"},
"color":{"field":"k","type":"nominal","scale":{"range":["#3666ff","#94a3b8","#dc2626"]}}
},
"width":420,"height":280
}