I'm trying to replicate this graphic from excel to power bi by using deneb and vega lite:

but I'm getting this result:
Here is the code I have until now:
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {"name": "dataset"},
"layer": [
{
"mark": {
"type": "area",
"line": {"color": "orange"},
"color": {
"x1": 1,
"y1": 1,
"x2": 1,
"y2": 0,
"gradient": "linear",
"stops": [
{
"offset": 0,
"color": "orange"
},
{
"offset": 1,
"color": "orange"
}
]
}
},
"encoding": {
"x": {
"timeUnit": "yearmonth",
"field": "Displayed Month",
"title": null,
"type": "temporal",
"axis": {"labels": true}
},
"y": {
"field": "Sum of EUR Total Amnt Open",
"type": "quantitative",
"axis": {"labels": true},
"title": null
}
}
},
{
"mark": {
"type": "bar",
"width": {"band": 0.3}
},
"encoding": {
"x": {
"timeUnit": "yearmonth",
"field": "Displayed Month",
"axis": {"labels": true},
"type": "temporal",
"title": null
},
"y": {
"field": "Sum of Open items",
"type": "quantitative",
"axis": {"labels": true},
"title": null
}
}
}
],
"resolve": {
"scale": {
"x": "shared",
"y": "independent"
},
"axis": {
"x": "shared",
"y": "independent"
}
}
}
I tried to use the resolve option in vega lite to get the marks aligned on the same X axis but without success - could you please give me some hints on what I'm doing wrong?


Could something like this work for you? There are always plenty of alternatives with vega lite - it's just about finding a solution that works for you.