fix: fix time tick error

This commit is contained in:
liihuu 2024-09-04 02:37:13 +08:00
parent b6168b6ecb
commit e186e7c777

View File

@ -192,7 +192,7 @@ export default class TimeScaleStore {
}
}
const tickList = this._timeTicks.get(weight) ?? []
tickList.push({ dataIndex: i, weight, dateTime, timestamp: kLineData.timestamp })
tickList.push({ dataIndex: i + baseDataIndex, weight, dateTime, timestamp: kLineData.timestamp })
this._timeTicks.set(weight, tickList)
prevKLineData = kLineData
}