New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjusting minimum value #84

Closed
abdullahabbasi opened this Issue Dec 2, 2015 · 4 comments

Comments

Projects
None yet
5 participants
@abdullahabbasi

abdullahabbasi commented Dec 2, 2015

Gauge disappears when i put min value.
http://jsfiddle.net/v8e3sd1b/3/

@fritz-smh

This comment has been minimized.

Show comment
Hide comment
@fritz-smh

fritz-smh Dec 12, 2015

Hi,

Same for me. Here is the traceback in chrome when I set a minValue != 0 :

Exception caught during observer callback: TypeError: Cannot read property 'pct' of undefined
    at b.getColorForPercentage (http://192.168.1.50:50002/widget/gauges/js/gauge.min.js:1:8782)
    at b.getColorForValue (http://192.168.1.50:50002/widget/gauges/js/gauge.min.js:1:9122)
    at b.render (http://192.168.1.50:50002/widget/gauges/js/gauge.min.js:1:9485)
    at b.a.update (http://192.168.1.50:50002/widget/gauges/js/gauge.min.js:1:2321)
    at Object.window.AnimationUpdater.run (http://192.168.1.50:50002/widget/gauges/js/gauge.min.js:1:12999)
    at b.set (http://192.168.1.50:50002/widget/gauges/js/gauge.min.js:1:8290)
    at dmw-gauges-gauge1.Polymer.sensorvalueChanged (http://192.168.1.50:50002/widget/gauges/gauge1.html:92:27)
    at dmw-gauges-gauge1.properties.invokeMethod (http://192.168.1.50:50002/libraries/polymer/polymer.js:9385:12)
    at dmw-gauges-gauge1.properties.notifyPropertyChanges (http://192.168.1.50:50002/libraries/polymer/polymer.js:9374:20)
    at Object.Observer.report_ (http://192.168.1.50:50002/libraries/polymer/polymer.js:4913:24)Observer.report_ @ polymer.js:4916createObject.check_ @ polymer.js:5319callback @ polymer.js:4811

Regards,
Fritz

fritz-smh commented Dec 12, 2015

Hi,

Same for me. Here is the traceback in chrome when I set a minValue != 0 :

Exception caught during observer callback: TypeError: Cannot read property 'pct' of undefined
    at b.getColorForPercentage (http://192.168.1.50:50002/widget/gauges/js/gauge.min.js:1:8782)
    at b.getColorForValue (http://192.168.1.50:50002/widget/gauges/js/gauge.min.js:1:9122)
    at b.render (http://192.168.1.50:50002/widget/gauges/js/gauge.min.js:1:9485)
    at b.a.update (http://192.168.1.50:50002/widget/gauges/js/gauge.min.js:1:2321)
    at Object.window.AnimationUpdater.run (http://192.168.1.50:50002/widget/gauges/js/gauge.min.js:1:12999)
    at b.set (http://192.168.1.50:50002/widget/gauges/js/gauge.min.js:1:8290)
    at dmw-gauges-gauge1.Polymer.sensorvalueChanged (http://192.168.1.50:50002/widget/gauges/gauge1.html:92:27)
    at dmw-gauges-gauge1.properties.invokeMethod (http://192.168.1.50:50002/libraries/polymer/polymer.js:9385:12)
    at dmw-gauges-gauge1.properties.notifyPropertyChanges (http://192.168.1.50:50002/libraries/polymer/polymer.js:9374:20)
    at Object.Observer.report_ (http://192.168.1.50:50002/libraries/polymer/polymer.js:4913:24)Observer.report_ @ polymer.js:4916createObject.check_ @ polymer.js:5319callback @ polymer.js:4811

Regards,
Fritz

@JerryLosey

This comment has been minimized.

Show comment
Hide comment
@JerryLosey

JerryLosey May 4, 2016

Same here.

JerryLosey commented May 4, 2016

Same here.

@tunanut

This comment has been minimized.

Show comment
Hide comment
@tunanut

tunanut Jan 14, 2017

Collaborator

Hi. Fixed this in pull requrest #107

Collaborator

tunanut commented Jan 14, 2017

Hi. Fixed this in pull requrest #107

@kplindegaard

This comment has been minimized.

Show comment
Hide comment
@kplindegaard

kplindegaard Jan 15, 2017

Collaborator

Fixed in c1c72e2

Collaborator

kplindegaard commented Jan 15, 2017

Fixed in c1c72e2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment