12-19-2018 16:09
12-19-2018 16:09
Hi,
Is it possible to change the fill colour of an arc at run-time in the index.js file?
I have a code line: arc1.fill = "fb-red"; which doesn't throw an error but doesn't change the colour of the arc.
I wanted the colour of the arc to vary as the value gets low. I'm currently using two arc on top of each other with different fill colours defined in the index.gui but wondered if there was a better way to do this.
First question on this board, which I must say has been amazingly useful so far.
Thanks.
Answered! Go to the Best Answer.
12-20-2018 14:46
12-20-2018 14:46
12-20-2018 14:46
Try
arc1.style.fill = "red"
12-20-2018 15:33
12-20-2018 15:33
Thanks Jon. Much appreciated.