You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)' }]";
}
}
});
}
});
The text was updated successfully, but these errors were encountered:
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)' }]";
}
}
});
}
});
The text was updated successfully, but these errors were encountered: