animateScrollBy

fun animateScrollBy(getDelta: (value: Float, maxValue: Float) -> Float)

Invokes the provided function block, passing to it the current scroll amount and the maximum scroll amount, and scrolls the chart by the number of pixels returned by the function block, using a ValueAnimator. Customize the animation with setAnimatedScrollDuration and setAnimatedScrollInterpolator.