canvas-gauges
canvas-gauges copied to clipboard
Gauge refuses to accept value change in vue2-canvas-gauges
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:
- The gauge needle will animate the correct value with the mouse button pressed and dragging a slider that sets the gauge value
- However, the gauge's displayed number is set to some random-ish value
- 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?)