diff --git a/apps/coin_info/app.js b/apps/coin_info/app.js index b3ec5d55f..13eac43fe 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 }); } @@ -99,7 +99,8 @@ function getChart(period) { // logFile.write("Chart data:" + JSON.stringify(tknChrtData)); currLoadMsg = ""; const oSpcOjb = ciLib.calculateOptimalYAxisSpacing(tknChrtData); - gridYValue = oSpcOjb.roundedInterval; + logFile.write("Y-Axis:" + JSON.stringify(oSpcOjb)); + // gridYValue = oSpcOjb.roundedInterval; // g.clearRect(layout.tknGraph.x, layout.tknGraph.y, layout.tknGraph.w, layout.tknGraph.h); layout.forgetLazyState(); // Force a full re-render diff --git a/apps/coin_info/lib.js b/apps/coin_info/lib.js index 3a0edea33..431212fcf 100644 --- a/apps/coin_info/lib.js +++ b/apps/coin_info/lib.js @@ -69,7 +69,7 @@ exports.calculateOptimalYAxisSpacing = function(data) { } // Find the minimum and maximum values in the data - const bounds = this.findMinMax(data); + const bounds = exports.findMinMax(data); let minY = bounds.min; let maxY = bounds.max; @@ -88,7 +88,7 @@ exports.calculateOptimalYAxisSpacing = function(data) { let interval = range / (numTicks - 1); // Round the interval to a nice number (e.g., 1, 2, 5, 10) - let roundedInterval = Math.pow(10, Math.floor(this.myLog10(interval))); + let roundedInterval = Math.pow(10, Math.floor(exports.myLog10(interval))); if (interval / roundedInterval > 5) { roundedInterval *= 5; } else if (interval / roundedInterval > 2) { diff --git a/apps/coin_info/metadata.json b/apps/coin_info/metadata.json index efc9089cd..d6b99a5cf 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.55", + "version": "0.06.56", "description": "Crypto-Coins Infos with the help of the Binance API", "icon": "app.png", "tags": "clkinfo",