diff --git a/apps/coin_info/README.md b/apps/coin_info/README.md index ee27f0cf6..6dc929084 100644 --- a/apps/coin_info/README.md +++ b/apps/coin_info/README.md @@ -26,6 +26,8 @@ Martin Zwigl ### App -- Using CoinStats for historical data +- Using CoinStats for chart-data - token-names on CoinStats are different to Binance; they also have to be uploaded via Interface -- You also need a CoinStats API access key which is good for a fair amount of calls \ No newline at end of file +- You also need a CoinStats API access key which is good for a fair amount of calls +- I tried with gridy for the axis, but for this data - it is just not readable... +- Let me know when you have good suggestions for improvement. \ No newline at end of file diff --git a/apps/coin_info/app.js b/apps/coin_info/app.js index 0d3816faa..c790faba7 100644 --- a/apps/coin_info/app.js +++ b/apps/coin_info/app.js @@ -45,7 +45,7 @@ function renderGraph(l) { x: l.x, y: l.y, width: l.w, height: l.h, miny: bounds.min, maxy: bounds.max, - gridy: gridYValue + // gridy: gridYValue }); } @@ -97,14 +97,20 @@ function getChart(period) { const apiData = JSON.parse(data.resp); tknChrtData = apiData.map(innerArray => innerArray[1]); // logFile.write("Chart data:" + JSON.stringify(tknChrtData)); - currLoadMsg = ""; - const oSpcOjb = ciLib.calculateOptimalYAxisSpacing(tknChrtData); + + // just not readable + // const oSpcOjb = ciLib.calculateOptimalYAxisSpacing(tknChrtData); // logFile.write("Y-Axis:" + JSON.stringify(oSpcOjb)); - gridYValue = oSpcOjb.interval; + // gridYValue = oSpcOjb.interval; + // g.clearRect(layout.tknGraph.x, layout.tknGraph.y, layout.tknGraph.w, layout.tknGraph.h); layout.forgetLazyState(); // Force a full re-render layout.render(layout.tknGraph); // Render just the graph area + + // + currLoadMsg = ""; + layout.render(layout.loadMsg); }) .catch(err => { // logFile.write("API Error: " + JSON.stringify(err)); diff --git a/apps/coin_info/metadata.json b/apps/coin_info/metadata.json index 801a86099..7823e2b79 100644 --- a/apps/coin_info/metadata.json +++ b/apps/coin_info/metadata.json @@ -1,7 +1,7 @@ { "id": "coin_info", "name": "Crypto-Coins Info", "shortName":"Coins Info", - "version": "0.06.57", + "version": "0.06.58", "description": "Crypto-Coins Infos with the help of the Binance API", "icon": "app.png", "tags": "clkinfo",