08-06-2021 23:29
08-06-2021 23:29
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 Answer08-11-2021 07:32
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
08-11-2021 07:32
Is it just failing to change via JavaScript? Does it work with hardcoded attributes?
start-angle='0' sweep-angle='270'
Best Answer08-11-2021 08:39
08-11-2021 08:39
Yes, works when hard coded into the SVG as expected but does not update (apparently) via javascript.
Best Answer