Skip to content

Unable to change Highlight #268

Open
@cfbristow71

Description

@cfbristow71

I am trying to modify the highlights option when running my code. I am able to set this value at startup, but anything I do in jscript does not show up when the app is running, Below is code setting the value. Any idea why it is not working?

function animateGauges() {
$.get( "/get_gauge_data2/", function( data ) {
for (var key in data) {
if (data.hasOwnProperty(key)) {
var gauge = document.gauges.get(data[key].Name);
gauge.value = data[key].Value;
gauge.options.highlights = "[{ from: 0, to: 100, color: 'rgba(100,255,0,.75)' }]";
}
}
});
}
});

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