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

How can I create activity rings?

How can I visually represent data like steps in an activity-ring styled watch face?

Best Answer
0 Votes
1 REPLY 1

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

Best Answer
0 Votes