minor improvements

master
Martin Zwigl 2025-03-23 00:06:18 +01:00
parent 1041b03141
commit 9bf8281dad
4 changed files with 14 additions and 5 deletions

View File

@ -48,4 +48,5 @@ Martin Zwigl
- Pause HTTP request cycle during show of Details or Lows/Highs
- Better choosing of fonts for more space
- set UI properly to have back button next to widgets
- set UI properly to have back button next to widgets
- clean-up code structure

View File

@ -132,8 +132,8 @@ function showLowHigh() {
// logFile.write("OptSpacing:" + JSON.stringify(optSpacing) + "\n");
const first = ciLib.formatPriceString(optSpacing.first);
const last = ciLib.formatPriceString(optSpacing.last);
const low = ciLib.formatPriceString(optSpacing.min);
const high = ciLib.formatPriceString(optSpacing.max);
const low = ciLib.formatPriceString(optSpacing.rawMin);
const high = ciLib.formatPriceString(optSpacing.rawMax);
const msg = `
First: ${first}
Last: ${last}

View File

@ -101,7 +101,15 @@ exports.calculateOptimalYAxisSpacing = function(data) {
let first = data[0];
let last = data[data.length - 1];
return { min: adjustedMin, max: adjustedMax, interval: roundedInterval, first: first, last: last };
return {
min: adjustedMin,
max: adjustedMax,
interval: roundedInterval,
first: first,
last: last,
rawMin: minY,
rawMax: maxY
};
}

View File

@ -1,7 +1,7 @@
{ "id": "coin_info",
"name": "Crypto-Coins Info",
"shortName":"Coins Info",
"version": "0.07.05",
"version": "0.07.06",
"description": "Crypto-Coins Infos with the help of the Binance API",
"icon": "app.png",
"tags": "clkinfo",