Skip to content
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

Unable to change Highlight #268

Open
cfbristow71 opened this issue Mar 18, 2023 · 1 comment
Open

Unable to change Highlight #268

cfbristow71 opened this issue Mar 18, 2023 · 1 comment

Comments

@cfbristow71
Copy link

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)' }]";
}
}
});
}
});

@TuShen121
Copy link

TuShen121 commented Mar 18, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants