Touch input at X,Y #845
-
QuestionIs it possible to receive a touch input callback at a given X,Y? That would be fantastic, if so! I'm not seeing an example in the showcase. This library does support "scrubbing" through a line chart somehow, right? Vico version(s)No response UI framework(s)Jetpack Compose |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Answering myself partially in that I see how I have a question related to this, if preferred I can make a separate thread: is it possible to show the marker at all times, even without user input? For example, I might want to always have a point in my line chart selected. It would be weird for the UI to not always have a point selected. |
Beta Was this translation helpful? Give feedback.
Hello, @Tyler-Lopez.
For charts with
CartesianMarker
s, this can be achieved viaCartesianMarkerVisibilityListener
. As mentioned in previous discussions, we plan on adding a dedicated,CartesianMarker
-independent API for this. In the meantime, if you need such callbacks but don't want to have aCartesianMarker
, an easy workaround is to create aCartesianMarker
that doesn't draw anything.Yes, it is. Please see
persistentMarkers
.