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

fixing duplicate label bug in x Axis when choosing to use custom labe… #651

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RabieMohimane
Copy link

in the idx expression (int idx = (int) ((value / range) * (mHorizontalLabels.length - 1));)
at least one time in execution i got i got the same value , so it add the same label to the xAxis ,
i resolved this issue by storing the previous idx and comparing it with the new one , if they are equals i aa 1 the the idx (idx=idx+1) . by that i prevent the duplicate labels bug in the x axis

…ls (formatLabel() is the function modified in StaticLabelsFormatter.java)
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

Successfully merging this pull request may close these issues.

1 participant