Small improvements
parent
d0ca095e5e
commit
b4e3f6c802
|
|
@ -26,6 +26,8 @@ Martin Zwigl
|
||||||
|
|
||||||
### App
|
### 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
|
- 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
|
- 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.
|
||||||
|
|
@ -45,7 +45,7 @@ function renderGraph(l) {
|
||||||
x: l.x, y: l.y, width: l.w, height: l.h,
|
x: l.x, y: l.y, width: l.w, height: l.h,
|
||||||
miny: bounds.min,
|
miny: bounds.min,
|
||||||
maxy: bounds.max,
|
maxy: bounds.max,
|
||||||
gridy: gridYValue
|
// gridy: gridYValue
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -97,14 +97,20 @@ function getChart(period) {
|
||||||
const apiData = JSON.parse(data.resp);
|
const apiData = JSON.parse(data.resp);
|
||||||
tknChrtData = apiData.map(innerArray => innerArray[1]);
|
tknChrtData = apiData.map(innerArray => innerArray[1]);
|
||||||
// logFile.write("Chart data:" + JSON.stringify(tknChrtData));
|
// 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));
|
// 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);
|
g.clearRect(layout.tknGraph.x, layout.tknGraph.y, layout.tknGraph.w, layout.tknGraph.h);
|
||||||
layout.forgetLazyState(); // Force a full re-render
|
layout.forgetLazyState(); // Force a full re-render
|
||||||
layout.render(layout.tknGraph); // Render just the graph area
|
layout.render(layout.tknGraph); // Render just the graph area
|
||||||
|
|
||||||
|
//
|
||||||
|
currLoadMsg = "";
|
||||||
|
layout.render(layout.loadMsg);
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
// logFile.write("API Error: " + JSON.stringify(err));
|
// logFile.write("API Error: " + JSON.stringify(err));
|
||||||
|
|
|
||||||
|
|
@ -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.06.57",
|
"version": "0.06.58",
|
||||||
"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