From 0c8ff0fd800c3d650f030eba982da5bf84b80a3f Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 20 Jan 2020 11:13:33 +0100 Subject: [PATCH] bug fixed when reloading with daily files --- ChartsSpace/TimelineChart.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ChartsSpace/TimelineChart.js b/ChartsSpace/TimelineChart.js index 61b51f716..8bba45db6 100644 --- a/ChartsSpace/TimelineChart.js +++ b/ChartsSpace/TimelineChart.js @@ -139,7 +139,7 @@ function newTimelineChart () { timeMachineCoordinateSystem = pTimeMachineCoordinateSystem timeFrame = INITIAL_TIME_PERIOD - datetime = NEW_SESSION_INITIAL_DATE + recalculateCurrentDatetime() /* Event Subscriptions - we need this events to be fired first here and then in active Plotters. */ onViewportPositionChangedEventSuscriptionId = canvas.chartSpace.viewport.eventHandler.listenToEvent('Position Changed', onViewportPositionChanged) @@ -168,6 +168,7 @@ function newTimelineChart () { thisObject.plotterManager.payload = thisObject.payload thisObject.plotterManager.initialize(thisObject.layersManager, DEFAULT_EXCHANGE, DEFAULT_MARKET) thisObject.plotterManager.setTimeFrame(timeFrame) + thisObject.plotterManager.setDatetime(datetime) } function initializeRateScale () {