statnett / vue-plotly

A vue wrapper for plotly.js chart library
MIT License
119 stars 28 forks source link

event doesn't work #16

Closed xueenda closed 5 years ago

xueenda commented 5 years ago

v-on:click="plotlyEvent"

This is not working. Please advise!

ifigueroap commented 5 years ago

I'm stuck in the same situation... the events are not working

Beomi commented 5 years ago

Yes, those events aren't working at all...

yejiyang commented 5 years ago

The events are not working. any one any advises?

mokkabonna commented 5 years ago

This is working fine for me after the latest update:

    <vue-plotly :data="data" :layout="layout" :options="options" @click="handler"/>
methods: {
    handler(event) {
      console.log('handled')
      console.log(event)
    }
}

Let me know if you still have problems.