greetclock / angular-gauge-chart

Angular Gauge Chart
https://recogizer.github.io/gauge-chart/examples/samples/
MIT License
61 stars 41 forks source link

getting issue when value is read from api #22

Open veersagar opened 5 years ago

veersagar commented 5 years ago

getting issue "updateNeedle" of undefined while reading values from api need to give setTimeout in "angular-gauge-chart.js" to updateneedle value but this should work without using setTimeout.

mmaltsev commented 5 years ago

Hi @veersagar,

seems like in your case the method updateNeedle is applied to the gaugeChart object before it has been initialized. I never faced this issue before and it's very hard to debug it based only on your report. It would be amazing if you could use some online testing environment like Plunker to reproduce the bug and post the link here.