VicoScrollState

constructor(scrollEnabled: Boolean, initialScroll: Scroll.Absolute, autoScroll: Scroll, autoScrollCondition: AutoScrollCondition, autoScrollAnimationSpec: AnimationSpec<Float>)

Houses information on a CartesianChart’s scroll value. Allows for scroll customization and programmatic scrolling.

Parameters

scrollEnabled

whether scroll is enabled.

initialScroll

represents the initial scroll value.

autoScroll

represents the scroll value or delta for automatic scrolling.

autoScrollCondition

defines when an automatic scroll should occur.

autoScrollAnimationSpec

the AnimationSpec for automatic scrolling.