Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

sweepAngle not working for gradientArc

let sweep = Math.floor(180*(batteryPercentage/100));
batteryLineFront.sweepAngle = sweep;

 

This doesn't seem to be working after I changed my arc svg object to a gradientArc.  Doesn't seem to work on the simulator or on the Sense.

 

Device is the Sense. SDK version 6.0, simulator is on Windows and v0.9.1.  Someone else reported that it works on the device, but the device does not seem to change either.

Best Answer
0 Votes
2 REPLIES 2

Is it just failing to change via JavaScript? Does it work with hardcoded attributes?

start-angle='0' sweep-angle='270'

Best Answer
0 Votes

Yes, works when hard coded into the SVG as expected but does not update (apparently) via javascript.

Best Answer
0 Votes