Well I have a data model with the following information in vuejs
graficos: {
data : {
labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'],
series: [
[5, 2, 4, 2, 0]
]
},
options : {
width: 600,
height: 300
},
In my html page I have this
<div id="app">
<div class="ct-chart ct-perfect-fourth"></div>
</div>
<script>
new Chartist.Line('.ct-chart', this.graficos.data, this.graficos.options);
</script>
however, a " cannot read property 'data' of undefined "
how do I access data templates from vuejs through another script,
Note: I need to put this new Chartist.Line('.ct-chart', this.graficos.data, this.graficos.options);
on my html page because I do not know how I would put this method into the VUE Data Model because if I were to put a method I would have to keep calling it