Open sharky98 opened 2 years ago
By the way, I have another way around. I wanted to configure the gauge outside of an ajax call and just update the values afterwards so that any refreshed values will be updated, but I'll go the other way around to create (and recreate) the chart each time the values are updated.
Thanks for filing this issue. I'll look into this.
Title says it all. Basically, I have using the configuration below for labels
But, when I use the
setMaxValue()
function there, it will not update thethis.max
in the label. https://github.com/naikus/svg-gauge/blob/5fd44a3f2d62a7019345bc3019a43f81693dbac5/src/gauge.js#L303-L305I tried to replace
this.max
bythis.limit
, as it is the internal variable, but the label shows as NaN instead. https://github.com/naikus/svg-gauge/blob/5fd44a3f2d62a7019345bc3019a43f81693dbac5/src/gauge.js#L303-L305