From 500ac3a2e237ecddc329996ee52a266149e7a956 Mon Sep 17 00:00:00 2001 From: Vladislav Poddubskii Date: Tue, 29 Oct 2024 13:33:07 +0000 Subject: [PATCH] Pull request #5338: [DXCF-5638] Chart - High and Low labels are not calculated for the last candle Merge in DXCHARTS/dxchart5 from feature/DXCF-5638-chart-high-and-low-labels-are-not-calculated-for-the-last-candle to master * commit 'dbda986131c3f3139ef2e5784bff9fd3a44c3ad8': [DXCF-5638] Chart - High and Low labels are not calculated for the last candle GitOrigin-RevId: db47b23d36f1c9a0e10b9fd651cc8509544faed3 --- src/chart/model/candle-series.model.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chart/model/candle-series.model.ts b/src/chart/model/candle-series.model.ts index caca538..47d89c9 100644 --- a/src/chart/model/candle-series.model.ts +++ b/src/chart/model/candle-series.model.ts @@ -162,7 +162,7 @@ export class CandleSeriesModel extends DataSeriesModel { */ recalculateZippedHighLow(): HighLowWithIndex { return (this.zippedHighLow = calculateCandlesHighLow( - this.visualPoints.slice(this.dataIdxStart, this.dataIdxEnd), + this.visualPoints.slice(this.dataIdxStart, this.dataIdxEnd + 1), )); }