diff --git a/ChartsSpace/TimelineChart.js b/ChartsSpace/TimelineChart.js index 1d783deb2..dd83c16fd 100644 --- a/ChartsSpace/TimelineChart.js +++ b/ChartsSpace/TimelineChart.js @@ -303,11 +303,7 @@ function newTimelineChart () { } center = unTransformThisPoint(center, thisObject.container) - if (thisObject.rateScale === undefined) { - center = timeMachineCoordinateSystem.unInverseTransform(center, thisObject.container.frame.height) - } else { - center = timelineChartCoordinateSystem.unInverseTransform(center, thisObject.container.frame.height) - } + center = coordinateSystem.unInverseTransform(center, thisObject.container.frame.height) let newDate = new Date(center.x) diff --git a/Globals.js b/Globals.js index 08ad5c1b7..60d77a30e 100644 --- a/Globals.js +++ b/Globals.js @@ -117,7 +117,7 @@ const DEFAULT_CONFIG_TEXT = '// Write your config here' const DEFAULT_FORMULA_TEXT = '// Write your formula here' const DEFAULT_CODE_TEXT = '// Write your code here' -const MAX_DEFAULT_RATE_SCALE_VALUE = 19900; // This is needed to know the scale of the market time line. +const MAX_DEFAULT_RATE_SCALE_VALUE = 35000; // This is needed to know the scale of the market time line. const WIDHTER_VOLUME_BAR_BASE_FACTOR = 2.5; const LESS_WIDHTER_VOLUME_BAR_TOP_FACTOR = 1 / 4;