canvas-gauges icon indicating copy to clipboard operation
canvas-gauges copied to clipboard

Unable to change Highlight

Open cfbristow71 opened this issue 1 year ago • 1 comments

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

cfbristow71 avatar Mar 18 '23 17:03 cfbristow71

您的邮件我已收到,谢谢!

TuShen121 avatar Mar 18 '23 17:03 TuShen121