0๐
โ
- It should be
this.possibleCharts
instead ofpossibleCharts
- If
possibleCharts
is load asynchronously, you should watch this value and render after that using$nextTick
. Thanks.
watch: { possibleCharts() { this.$nextTick(() => { for (let i = 0; i < this.possibleCharts.length; i++) { vegaEmbed("#chart" + i, this.possibleCharts[i].spec); } }) } }
Hope this will help.
Source:stackexchange.com