minor improvements
parent
1041b03141
commit
9bf8281dad
|
|
@ -49,3 +49,4 @@ Martin Zwigl
|
||||||
- Pause HTTP request cycle during show of Details or Lows/Highs
|
- Pause HTTP request cycle during show of Details or Lows/Highs
|
||||||
- Better choosing of fonts for more space
|
- 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
|
||||||
|
|
@ -132,8 +132,8 @@ function showLowHigh() {
|
||||||
// logFile.write("OptSpacing:" + JSON.stringify(optSpacing) + "\n");
|
// logFile.write("OptSpacing:" + JSON.stringify(optSpacing) + "\n");
|
||||||
const first = ciLib.formatPriceString(optSpacing.first);
|
const first = ciLib.formatPriceString(optSpacing.first);
|
||||||
const last = ciLib.formatPriceString(optSpacing.last);
|
const last = ciLib.formatPriceString(optSpacing.last);
|
||||||
const low = ciLib.formatPriceString(optSpacing.min);
|
const low = ciLib.formatPriceString(optSpacing.rawMin);
|
||||||
const high = ciLib.formatPriceString(optSpacing.max);
|
const high = ciLib.formatPriceString(optSpacing.rawMax);
|
||||||
const msg = `
|
const msg = `
|
||||||
First: ${first}
|
First: ${first}
|
||||||
Last: ${last}
|
Last: ${last}
|
||||||
|
|
|
||||||
|
|
@ -101,7 +101,15 @@ exports.calculateOptimalYAxisSpacing = function(data) {
|
||||||
|
|
||||||
let first = data[0];
|
let first = data[0];
|
||||||
let last = data[data.length - 1];
|
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
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ "id": "coin_info",
|
{ "id": "coin_info",
|
||||||
"name": "Crypto-Coins Info",
|
"name": "Crypto-Coins Info",
|
||||||
"shortName":"Coins Info",
|
"shortName":"Coins Info",
|
||||||
"version": "0.07.05",
|
"version": "0.07.06",
|
||||||
"description": "Crypto-Coins Infos with the help of the Binance API",
|
"description": "Crypto-Coins Infos with the help of the Binance API",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"tags": "clkinfo",
|
"tags": "clkinfo",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue