Skip to content

version 2.0.0-alpha.19 custom marker value formatter issue #696

Discussion options

You must be logged in to vote

Hello! CartesianMarkerValueFormatters don’t draw anything, and neither did MarkerLabelFormatters. The only responsibility of implementations of these interfaces is formatting values for display, hence the CharSequence return type.

Drawing is performed by TextComponent. A distinction should be made between the label text and the TextComponent that draws the label. The purpose of the label parameter of rememberDefaultCartesianMarker is to let you pass a TextComponent and customize such properties as the font, the text size, and—most importantly here—the background. Indeed, as can be seen here, the rememberMarker function from the sample app, which you were previously using, creates a TextCo…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by virtualpathum
Comment options

You must be logged in to vote
2 replies
@Gowsky
Comment options

@patrickmichalik
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants