BrewBlox / vue-plotly.js

A plotly.js Vue component from Plotly 📈 🏗
MIT License
4 stars 0 forks source link

plot is not reactive #4

Open netchose opened 5 years ago

netchose commented 5 years ago

Hi,

I modified the example that you gave by adding a button and a method like this: i can see the props change in vue dev tool but nothing happen on the screen

thakks a lot   ``` <button @click = "dochange"> dochange </ button>

  methods: {

     dochange() {

       this.layout.plotBackground = "# 000000";        this.data [0] .y = [5,6,7,8];        this.data [0] .marker.color = '# faae00';      }