Skip to content

Commit

Permalink
Merge pull request #37 from devexperts/labels-update-fix
Browse files Browse the repository at this point in the history
fix: update y axis labels when last candle value changes
  • Loading branch information
KirillBobkov authored Sep 28, 2023
2 parents efa4d97 + f71e4ed commit 3428cd6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/chart/components/chart/chart.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,7 @@ export class ChartModel extends ChartBaseElement {

if (lastCandle) {
series.updateCurrentPrice(lastCandle.close);
this.paneManager.yExtents.forEach(ext => ext.yAxis.updateOrderedLabels(true));
}

if (isInView && lastCandle && candles.length === 1) {
Expand Down

0 comments on commit 3428cd6

Please sign in to comment.