get Max Scroll Distance
fun getMaxScrollDistance(columnWidth: Float, xMax: Float, xMin: Float, xOffset: Float, paddingRight: Float, canvasWidth: Float, containerPaddingEnd: Float = 0.0f): Float
returns the max scrollable distance based on the points to be drawn along with padding etc.
Parameters
column Width
: Width of the Y-Axis.
x Max
: Max X-Axis value.
x Min
: Min X-Axis value.
x Offset
: Total distance between two X-Axis points.
padding Right
: Padding at the end of the canvas.
canvas Width
: Total available canvas width.
container Padding End
: Container inside padding end after the last point of the graph.