diff --git a/.vs/AAOlivia-Plotter/v15/.suo b/.vs/AAOlivia-Plotter/v15/.suo index 4f44b157e..762c3ed89 100644 Binary files a/.vs/AAOlivia-Plotter/v15/.suo and b/.vs/AAOlivia-Plotter/v15/.suo differ diff --git a/Candlestick.js b/Candlestick.js index 20926d6f7..5d4c7393f 100644 --- a/Candlestick.js +++ b/Candlestick.js @@ -50,8 +50,6 @@ let newMarketFile = fileCache.getFile(pTimePeriod); - recalculateScale(); // With any of the market files we can calculate the scale. - if (newMarketFile !== undefined && marketFile === undefined) { // if the file ready is the one we need then it and we dont have it yet, then we will continue here. marketFile = newMarketFile; @@ -72,13 +70,15 @@ if (dailyFile !== undefined) { - finishInitialization(); + callBackFunction(); } } function finishInitialization() { + recalculateScale(); // With any of the market files we can calculate the scale. + layerStatus = chartLayersPanel.getLayerStatus(chartLayersPanel.layerNames.OLIVIA_CANDLES); recalculateCandles(); @@ -87,8 +87,6 @@ viewPort.eventHandler.listenToEvent("Zoom Changed", onZoomChanged); canvas.eventHandler.listenToEvent("Drag Finished", onDragFinished); - callBackFunction(); - } }