Skip to content

SetMaxValue does not update the label if "this.max" is used in the label #59

@sharky98

Description

@sharky98

Title says it all. Basically, I have using the configuration below for labels

label: function(value) {
    return Math.round(value) + "/" + this.max;
}

But, when I use the setMaxValue() function there, it will not update the this.max in the label.

svg-gauge/src/gauge.js

Lines 303 to 305 in 5fd44a3

setMaxValue: function(max) {
limit = max;
},

I tried to replace this.max by this.limit, as it is the internal variable, but the label shows as NaN instead.

svg-gauge/src/gauge.js

Lines 303 to 305 in 5fd44a3

setMaxValue: function(max) {
limit = max;
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions