bbonnin / vue-morris

VueJS component wrapping Morris.js
MIT License
235 stars 36 forks source link

How can acces to method redraw? #25

Closed ccorreia-multiconversion closed 5 years ago

ccorreia-multiconversion commented 5 years ago

Hi!

I have the followed graph

image

And added ref="graph"

when access this.$refs.graph.redraw() throw an error this.$ref.graph.redraw is not a function

bbonnin commented 5 years ago

Hi,

I think you should try something like: this.$refs.graph.chart.redraw().