Ability to show Icons in a custom cartersian marker #881
Answered
by
Gowsky
Praveen-Android
asked this question in
Questions
-
Questionis it possible to customize the marker label to show an icon drawable in addition to text? Vico version(s)2.0.0-alpha.28 UI framework(s)No response |
Beta Was this translation helpful? Give feedback.
Answered by
Gowsky
Sep 24, 2024
Replies: 1 comment 8 replies
-
Hi @Praveen-Android. Yes, it's possible. Could you clarify if "custom cartesian marker" refers to a customized instance of |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Praveen-Android
CartesianMarkerValueFormatter
expects you to returnCharSequence
. Therefore you can useSpannableString
withImageSpan
to add an icon to your text. Also, please note thatCartesianMarker
is an interface that allows you to draw anything onCanvas
.