diff --git a/src/Chart.ts b/src/Chart.ts index 02d656020..fd2d0aaf3 100644 --- a/src/Chart.ts +++ b/src/Chart.ts @@ -665,6 +665,9 @@ export default class ChartImp implements Chart { } applyNewData (data: KLineData[], more?: boolean | Partial): void { + this._drawPanes.forEach(pane => { + (pane.getAxisComponent() as AxisImp).setAutoCalcTickFlag(true) + }) let loadDataMore = { forward: false, backward: false } if (isBoolean(more)) { loadDataMore.forward = more @@ -672,7 +675,6 @@ export default class ChartImp implements Chart { } else { loadDataMore = { ...loadDataMore, ...more } } - this._chartStore.addData(data, LoadDataType.Init, loadDataMore) }