issue w/ layered repeat view using Vega-lite

Hi,
I am an Observable newbie with only a few months of JS experience who is exploring dataviz.
I have tried to reproduce an original Vega-Lite example in Observable but failed so far. When I use the exact same VL object (apart from the actual source of the data) I get a slightly different graph in Observable, with a stacked iso a grouped view, and a missing legend heading.
The Observable notebook can be found here:

Any suggestion where this might have gone wrong ?

Thx in advance

1 Like

Hey @Snoopy2024! Sorry for the slow reply. This was a tricky question – I discovered that vega-embed is the suggested approach for embedding vega-lite in Observable.

Here’s a fork of your notebook with the working example, please let me know if you have any follow-up! You might also want to check out this collection on charting with vega-lite.

2 Likes