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