loading the graph can take a while, so show a simple loading indicator
because it's impossible to get out of a function and call onUpdate() while the function is working there was some refactoring needed
now it's not the getGraphData function doing the looping but onUpdate() calls itself (by using WatchUi.requestUpdate();) till the reading of all the data is done
loading the graph can take a while, so show a simple loading indicator because it's impossible to get out of a function and call
onUpdate()
while the function is working there was some refactoring needed now it's not thegetGraphData
function doing the looping butonUpdate()
calls itself (by usingWatchUi.requestUpdate();
) till the reading of all the data is done