10-29-2020 13:09
10-29-2020 13:09
How can I visually represent data like steps in an activity-ring styled watch face?
11-16-2020 05:02
11-16-2020 05:02
You can use the ARC element and set that programatically.
<arc id="myArc" x="25" y="50" width="100" height="100" fill="red" arc-width="10" start-angle="0" sweep-angle="90" />
https://dev.fitbit.com/build/guides/user-interface/svg/#arc
In code it would be something like:
const myArc = document.getElementById("myArc");
myArc.startAngle = 0;
myArc.sweepAngle = 360;
https://dev.fitbit.com/build/reference/device-api/document/#interface-arcelement