diff --git a/chart.html b/chart.html index 963a195f..3a330d51 100644 --- a/chart.html +++ b/chart.html @@ -3,6 +3,8 @@ The component is ONLY free of charge for non-profit/personal use. For further details or for buying a commercial license, visit the vendor website: https://shop.highsoft.com/highcharts/ + + http://jsfiddle.net/tvpcwLj9/ --> @@ -30,10 +32,15 @@ for (let i=0; i < tradeLength; i += 1) { let isBuy = data.trades[i].action === 'buy' ? true : false; + let txt = ` + Trade: ${data.trades[i].action.toUpperCase()}

+ Price: ${data.trades[i].price} + `; + if (data.trades[i].origin !== undefined) txt += '

Origin: ' + data.trades[i].origin trades.push({ x: data.trades[i].date*1000, // the date title: isBuy ? 'B' : 'S', - text: 'Trade: ' + data.trades[i].action.toUpperCase() + '

Price: ' + data.trades[i].price + '', + text: txt, color: isBuy ? 'green' : 'red', fillColor: isBuy ? 'green' : 'red', stackDistance: isBuy ? 50 : 25, @@ -270,4 +277,4 @@ }); - \ No newline at end of file + diff --git a/package-lock.json b/package-lock.json index 0cc77186..7b64ddcb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "gekko", - "version": "2019.0.68.234", + "version": "2019.0.68.255", "lockfileVersion": 1, "requires": true, "dependencies": {