scrollToDataIndex(dataIndex, animationDuration?)
scrollToDataIndex
scroll the right side of the chart to the specified data index position.
Reference
typescript
(dataIndex: number, animationDuration?: number) => void
Parameters
dataIndex
Data index.animationDuration
Animation duration. If it is less than or equal to 0, there is no animation.
Returns
scrollToDataIndex
returns undefined
.