Md-Razu-Haolader / Vue-Gauge

12 stars 4 forks source link

Reload GaugeChart when nedleValue option is changed #2

Open tusil opened 3 years ago

tusil commented 3 years ago

When needleValue option is changed, the GaugeChart instance is removed and created again with the new value. The GaugeChart.updateNeedle method only updates needle position, but if you need to update needle position with the centralLabel option, the GaugeChart instance has to be removed and created again.

tusil commented 3 years ago

When the needleValue option is changed, the updateNeedle method is called on the GaugeChart instance. If the centralLabel option is changed with the needleValue option, the GaugeChart instance is removed and created again.

Fixes #1

sathishsundar05 commented 2 years ago

This works fine, can the author of this repo please merge and make a release with this.