Skip to content

Commit

Permalink
Pull request #5338: [DXCF-5638] Chart - High and Low labels are not c…
Browse files Browse the repository at this point in the history
…alculated 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
  • Loading branch information
artskar authored and dxcity committed Dec 11, 2024
1 parent f4bab88 commit 500ac3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chart/model/candle-series.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export class CandleSeriesModel extends DataSeriesModel<Candle, VisualCandle> {
*/
recalculateZippedHighLow(): HighLowWithIndex {
return (this.zippedHighLow = calculateCandlesHighLow(
this.visualPoints.slice(this.dataIdxStart, this.dataIdxEnd),
this.visualPoints.slice(this.dataIdxStart, this.dataIdxEnd + 1),
));
}

Expand Down

0 comments on commit 500ac3a

Please sign in to comment.