diff --git a/common/Charts/ChartsDrawer.js b/common/Charts/ChartsDrawer.js index 1bbcea9b02..34337e9eb4 100644 --- a/common/Charts/ChartsDrawer.js +++ b/common/Charts/ChartsDrawer.js @@ -1678,7 +1678,6 @@ CChartsDrawer.prototype = let boundaries = {}; - // add Trendline coordinates and precalculate all the necessary results if (this.nDimensionCount !== 3 && chartSpace && chartSpace.chart && chartSpace.chart.plotArea && chartSpace.chart.plotArea.charts) { const charts = chartSpace.chart.plotArea.charts; let counter = chartSpace.chart.dispBlanksAs === AscFormat.DISP_BLANKS_AS_ZERO ? 0 : null; @@ -1686,6 +1685,7 @@ CChartsDrawer.prototype = if (charts[i].series) { const subType = this.getChartGrouping(charts[i]); const series = charts[i].series; + // add UpDownBars coordinates and all the necessary information if (charts[i].upDownBars) { for (let j = 0; j < series.length; j++) { const seria = series[j]; @@ -1710,6 +1710,7 @@ CChartsDrawer.prototype = } } } + // add Trendline coordinates and precalculate all the necessary results if (subType === 'normal') { for (let j = 0; j < series.length; j++) { const seria = series[j]; @@ -18980,12 +18981,14 @@ CColorObj.prototype = constructor: CUpDownBars, + // initialize important information provideInfo: function (ptsCount, subtype, upDownBars) { this.ptsCount = ptsCount; this.subtype = subtype; this.upDownBars = upDownBars; }, + // add coordinates one by one addCoordinate: function (catPoint, valPoint, index) { if (this.lastIndex === null || index !== this.lastIndex) { this.lastIndex = index; @@ -19032,7 +19035,7 @@ CColorObj.prototype = let chosenPath; for (let i in charts) { - if (charts.hasOwnProperty(i) && charts[i]) { + if (charts.hasOwnProperty(i) && charts[i] && this.upDownBars && this.upDownBars.parent.Id === i) { const valAxis = charts[i].chart.axId[1]; const catStart = this.cChartDrawer.calcProp.chartGutter._left; @@ -19076,7 +19079,6 @@ CColorObj.prototype = start += barWidth + (gapBetween * 2); } } - console.log(this.upPaths, this.downPaths); } } },