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

Can't show Label text in XAxis #3308

Closed
AbySwifter opened this issue Mar 1, 2018 · 2 comments
Closed

Can't show Label text in XAxis #3308

AbySwifter opened this issue Mar 1, 2018 · 2 comments

Comments

@AbySwifter
Copy link

In IndexAxisValueFormatter.swift line 56.

 guard values.indices.contains(index), index != Int(value) else { return "" }

there always return "".

when user "IndexAxisValueFormatter(values: values)" to set xAixs.valueFormatter.

@AbySwifter
Copy link
Author

I think there should be " guard values.indices.contains(index), index == Int(value) else { return "" } "

@liuxuan30
Copy link
Member

It's fixed in master.

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