# issue w/ layered repeat view using Vega-lite

**URL:** <https://talk.observablehq.com/t/issue-w-layered-repeat-view-using-vega-lite/5865>\
**Category:** Help\
**Created:** [November 25, 2021, 6:16pm UTC](https://talk.observablehq.com/t/issue-w-layered-repeat-view-using-vega-lite/5865 "2021-11-25T18:16:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Snoopy2024](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/snoopy2024/32/5562_2.png) [@Snoopy2024](https://talk.observablehq.com/u/Snoopy2024)\
**Post date:** [November 25, 2021, 6:16pm UTC](https://talk.observablehq.com/t/issue-w-layered-repeat-view-using-vega-lite/5865/1 "2021-11-25T18:16:35Z")

</div>

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:

> **[Learning Vega lite - failed copy-paste ?!](https://observablehq.com/@7522f473057192b5/learning-vega-lite-failed-copy-paste)**
>
> Result with Vega-lite from Observable: stacked, not grouped; color legend heading not visible What I was expecting (same VL object apart from data source): Vega-Lite from idL: Grouped Bar Chart

Any suggestion where this might have gone wrong ?

Thx in advance

---

<div class="post-metadata">

**Author:** ![mkfreeman](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mkfreeman/32/2988_2.png) [@mkfreeman](https://talk.observablehq.com/u/mkfreeman)\
**Post date:** [December 1, 2021, 9:10pm UTC](https://talk.observablehq.com/t/issue-w-layered-repeat-view-using-vega-lite/5865/2 "2021-12-01T21:10:43Z")

</div>

Hey @Snoopy2024! Sorry for the slow reply. This was a tricky question – I discovered that [vega-embed](https://observablehq.com/@vega/hello-vega-embed) is the suggested approach for embedding vega-lite in Observable.

Here’s a fork of your notebook with the [working example](https://observablehq.com/@observablehq/vega-lite-question-response), please let me know if you have any follow-up! You might also want to check out this collection on [charting with vega-lite](https://observablehq.com/collection/@observablehq/observable-for-vega-lite).
