Bringing in a number of charts into a SPA, but can't get them to bind to the container.
In an external js data file I specify the binding like this, for chart42Data:
bindto: document.getElementById('chart42Graph')
I import the data, and initialize the data:
this.handler.$emit('init', this.chart42Data)
Hoping it ends up in this container, but it doesn't:
<vue-c3 :handler="handler" id="chart42Graph"></vue-c3>
Instead, the last item I initialize attaches to all vue-c3 containers.
What am I missing?
Bringing in a number of charts into a SPA, but can't get them to bind to the container.
In an external js data file I specify the binding like this, for chart42Data:
bindto: document.getElementById('chart42Graph')I import the data, and initialize the data:
this.handler.$emit('init', this.chart42Data)Hoping it ends up in this container, but it doesn't:
<vue-c3 :handler="handler" id="chart42Graph"></vue-c3>Instead, the last item I initialize attaches to all
vue-c3containers.What am I missing?