Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draw circle only on last value #3887

Closed
MickaelCruzDB opened this issue Mar 7, 2019 · 1 comment
Closed

Draw circle only on last value #3887

MickaelCruzDB opened this issue Mar 7, 2019 · 1 comment

Comments

@MickaelCruzDB
Copy link

Hi, I'm working on a graph LineChartView. I goal to achieve it's the image below :
t9pxk
Today my actual status is :
xmg1l

Via LineChartDataSet I achieved to create the circle exactly as expected with the value. But, the problem is for each value of the LineChartDataSet the circle and the value are displayed. I need to only have the last circle visible. Reading lot of similar issues it seems to be mandatory to override drawHighlighted () or drawCircles() but someone could explain me really in details how to manage that? Thanks in advance!

@liuxuan30
Copy link
Member

liuxuan30 commented Mar 21, 2019

the only thing is you have to read the code how to only draw a circle at last entry. You already have the method names. bonus: take a look at drawDataSet

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

No branches or pull requests

2 participants