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

Why is the xAxis Value Formater so often called? #3220

Closed
dadidu67 opened this issue Jan 29, 2018 · 2 comments
Closed

Why is the xAxis Value Formater so often called? #3220

dadidu67 opened this issue Jan 29, 2018 · 2 comments

Comments

@dadidu67
Copy link

dadidu67 commented Jan 29, 2018

A chart with only 20 values and 6 xAxis labels calls the formatter many time with the same value. Waste of resources:

func stringForValue(_ value: Double, axis: AxisBase?) -> String

value: 3.0
value: 6.0
value: 9.0
value: 12.0
value: 15.0
value: 18.0
value: 3.0
value: 6.0
value: 9.0
value: 12.0
value: 15.0
value: 18.0

@jjatie
Copy link
Collaborator

jjatie commented Jan 30, 2018

Please provide a reproducible code sample.

@liuxuan30
Copy link
Member

liuxuan30 commented Feb 16, 2018

close as no update since then. reopen with details. only pasting a lot of logs does not help at all.
you should check your calling stack who's calling it.

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

No branches or pull requests

3 participants