From 1ca5d1f3e1cc8f0ca5b87459c58ac055f2c93d76 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 14 Jul 2020 07:21:13 +0200 Subject: [PATCH] FIx bug in hover tooltip --- src/components/ftbot/CandleChart.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/ftbot/CandleChart.vue b/src/components/ftbot/CandleChart.vue index b1a11320..e8bc3741 100644 --- a/src/components/ftbot/CandleChart.vue +++ b/src/components/ftbot/CandleChart.vue @@ -328,7 +328,7 @@ export default class CandleChart extends Vue { } if (options.xAxis && Array.isArray(options.xAxis)) { options.xAxis.push({ - type: 'category', + type: 'time', scale: true, gridIndex: plotIndex, boundaryGap: false, @@ -358,7 +358,7 @@ export default class CandleChart extends Vue { } // entries per subplot const col = this.dataset.columns.findIndex((el) => el === sk); - if (col) { + if (col > 0) { const sp: echarts.EChartOption.Series = { name: sk, type: sv.type || 'line', @@ -413,10 +413,10 @@ export default class CandleChart extends Vue { } } } - console.log(`Trades: ${trades.length}`); - console.log(trades); - console.log(`ClosesTrades: ${tradesClose.length}`); - console.log(tradesClose); + // console.log(`Trades: ${trades.length}`); + // console.log(trades); + // console.log(`ClosesTrades: ${tradesClose.length}`); + // console.log(tradesClose); const name = 'Trades'; const nameClose = 'Trades Close';