I have been try from c3 site, but it does not work, this is my code
in template
<vue-c3 :handler="handler"></vue-c3>
then in script
<script>
import VueC3 from 'vue-c3'
export default {
name: 'Dashboard',
props: ['handler'],
components:{ VueC3 },
data() {
return {
}
},
methods: {
initChart(){
const options = {
data: {
columns: [
['data1', 2, 4, 1, 5, 2, 1],
['data2', 7, 2, 4, 6, 10, 1]
],
},
}
this.handler.$emit('init', options)
}
},
mounted() {
this.initChart();
}
};
</script>
chart not rendered, what is wrong?