09-03-2017 15:22 - edited 09-04-2017 14:21
09-03-2017 15:22 - edited 09-04-2017 14:21
Hello,
So, impatience got the better of me and I made a quick demo showing how to simulate an image based face ( @JonFitbit LCD Clock Example) using SVG in JSBin.
Have a look here:
http://jsbin.com/sosokon/edit?html,js,output
The main differences in the code are:
1. Added width: 348 and height: 250 attributes to the #Page element in the CSS tab
2. I base 64 encoded the images into an array
3. The SVG .href tags need to be changed using setattributeNS() function.
NiVZ
09-04-2017 04:36
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.
09-16-2017 12:49
09-16-2017 12:49
Thanks @NiVZ !
I've made other experimentations based on your great work
https://jsfiddle.net/0ytgt8d8/
Notes:
* Open Sans font, from googleapis
* dynamic graphs
What is different/won't work with Ionic:
* To modify sizes: obj.height = h; => obj.setAttribute("height", h + "px");
* <tspan>
09-16-2017 14:23
09-22-2017 05:59
09-22-2017 05:59
@Jay3 I've used your graph code loop to start a prototype for a project I hope to do for real. It's a port of a Nightscout watchface to show Diabetic Blood Glucose values on the watch 😉
http://jsbin.com/xurigom/edit?html,js,output
NiVZ
09-22-2017 09:05