Reset zoom programatically #1046
Unanswered
bytesculptor
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
I can't figure out how to reset the zoom programatically. After the user has zoomed into the chart with their fingers, I want to reset that zoomState to the initialZoom when pressing a button. It's not possible to assign again the remember because the button onClick callback isn't a Composable function. Still struggling a bit with those remembers and Compose.
zoomState
is passed to arememberLineCartesianLayer(..)
var zoomState = rememberVicoZoomState(initialZoom = Zoom.Content)
Module(s)
compose
Platform(s)
Android
Platform version(s)
No response
Vico version(s)
2.0.1
Beta Was this translation helpful? Give feedback.
All reactions