Skip to content

How does Marker works when using XML and not compose #524

Closed Answered by patrickmichalik
DannyBloky asked this question in Questions
Discussion options

You must be logged in to vote

You can add a standard Marker by updating lineChart.marker, @DannyBloky. For example, if you’re creating your Marker via MarkerComponent, use the following:

lineChart.marker = MarkerComponent(/* ... */)

By the way, it looks like you’re recreating your ChartEntryModelProducer on every data update. This is discouraged and may cause unexpected behavior. I’d recommend using a single ChartEntryModelProducer and storing it at a higher level.

@csbenz, LineChart is a Vico 1 class. In Vico 2, use LineCartesianLayer.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@DannyBloky
Comment options

@csbenz
Comment options

@patrickmichalik
Comment options

Answer selected by DannyBloky
@DannyBloky
Comment options

@patrickmichalik
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants