canvas-gauges icon indicating copy to clipboard operation
canvas-gauges copied to clipboard

Gauge refuses to accept value change in vue2-canvas-gauges

Open JamesCreasyWN opened this issue 4 years ago • 0 comments

From vue2-canvas-gauges/src/RadialGauge.vue

  watch: {
    value: function (val) {
      this.chart.value = val
      console.log('test='+(this.chart.value == val))

This produces

test=false

in the console.

I would expect the test to return true.

Notes:

  1. The gauge needle will animate the correct value with the mouse button pressed and dragging a slider that sets the gauge value
  2. However, the gauge's displayed number is set to some random-ish value
  3. When the needle animation ends, the gauge updates to the gauge's displayed number, which is not what's expected

Also, if there's a better place to ask this, please let me know. (Stackoverflow?)

JamesCreasyWN avatar May 11 '20 20:05 JamesCreasyWN