From e755819ab66bfcee14b95522cccb6e1e02d82dd9 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 2 Apr 2019 21:22:37 +0200 Subject: [PATCH] Bug fixed !!! Plotters not plotting at the right place --- Globals.js | 2 +- TimeMachine.js | 7 +++---- TimelineChart.js | 4 ++-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Globals.js b/Globals.js index 934f36753..127b81a9d 100644 --- a/Globals.js +++ b/Globals.js @@ -101,7 +101,7 @@ const SUPPORTED_MARKETS = [ assetB: "BTC", } ]; -const DEFAULT_EXCHANGE = "Poloniex"; +const DEFAULT_EXCHANGE = "Coss"; const DEFAULT_MARKET = { assetA: "USDT", assetB: "BTC", diff --git a/TimeMachine.js b/TimeMachine.js index 3827fcd02..50ffd9a0c 100644 --- a/TimeMachine.js +++ b/TimeMachine.js @@ -73,7 +73,7 @@ function newTimeMachine () { timelineChart.container.frame.height = thisObject.container.frame.height * 1 * canvas.bottomSpace.chartAspectRatio.aspectRatio.y timelineChart.container.frame.position.x = thisObject.container.frame.width / 2 - timelineChart.container.frame.width / 2 - timelineChart.container.frame.position.y = timelineChart.container.frame.height * 1.5 * position + timelineChart.container.frame.position.y = timelineChart.container.frame.height * 1.1 * position position++ @@ -132,7 +132,7 @@ function newTimeMachine () { timelineChart.container.frame.height = thisObject.container.frame.height * 1 * canvas.bottomSpace.chartAspectRatio.aspectRatio.y timelineChart.container.frame.position.x = thisObject.container.frame.width / 2 - timelineChart.container.frame.width / 2 - timelineChart.container.frame.position.y = timelineChart.container.frame.height * 1.5 * position + timelineChart.container.frame.position.y = timelineChart.container.frame.height * 1.1 * position position++ @@ -147,8 +147,7 @@ function newTimeMachine () { timelineChart.container.eventHandler.listenToEvent('Datetime Changed', controlPanel.setDatetime) alreadyInitialized++ - console.log('alreadyInitialized ' + alreadyInitialized) - console.log('leftToInitialize ' + leftToInitialize) + if (alreadyInitialized === leftToInitialize) { callBackFunction(GLOBAL.DEFAULT_OK_RESPONSE) } diff --git a/TimelineChart.js b/TimelineChart.js index c45f1f44b..52cca550d 100644 --- a/TimelineChart.js +++ b/TimelineChart.js @@ -138,8 +138,8 @@ plotterManager.container.frame.width = thisObject.container.frame.width plotterManager.container.frame.height = thisObject.container.frame.height - plotterManager.container.frame.position.x = thisObject.container.frame.position.x - plotterManager.container.frame.position.y = thisObject.container.frame.position.y + plotterManager.container.frame.position.x = 0 + plotterManager.container.frame.position.y = 0 plotterManager.initialize(productsPanel, pExchange, pMarket, onPlotterManagerReady)