YAxis zoom #1058
Replies: 6 comments
-
Hello! Unfortunately, Vico doesn’t include such functionality. We don’t currently plan on adding it, but we may consider doing so in the future. We understand that vertical scrolling would be required for full-screen financial charts, for example, but Vico is intended for more conventional use cases. |
Beta Was this translation helpful? Give feedback.
-
Please add to the documentation that zoom and scroll are only available for X-axis. Maybe you could reference a link for people to upvote if they are interested in this feature. |
Beta Was this translation helpful? Give feedback.
-
We’ll look into updating the documentation accordingly, @matej-marjanovic. Regarding the feature request, I’m afraid that, as per the comment above, we don’t plan on implementing vertical scrolling as of now. |
Beta Was this translation helpful? Give feedback.
-
In theory, for the version using Compose, dynamically providing instances of the "RangeProvider" should work. Of course, due to recompositions, it won't be particularly smooth, it's currently feasible as long as linking the zoom to both the x and y axes simultaneously isn't an issue. Eg.
|
Beta Was this translation helpful? Give feedback.
-
Hello, @Shusek.
As discussed in the guide, such usage is incorrect and wouldn't produce the expected result. Instead, you'd need to have a single
Recompositions are normal and aren't a concern. Any change to what's displayed involves a recomposition. For example, when you interact with a
You don't necessarily have to do this. You could add a gesture modifier to the |
Beta Was this translation helpful? Give feedback.
-
As we’re shifting to a more community-driven approach, I’ll be reopening this as a discussion in the “Ideas” category. Please upvote the discussion if you’d like to see vertical scroll and zoom added. |
Beta Was this translation helpful? Give feedback.
-
Hi! How could YAxis scroll be enabled?
Beta Was this translation helpful? Give feedback.
All reactions