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

XAxisRenderer not called #3293

Closed
tijee opened this issue Feb 23, 2018 · 1 comment
Closed

XAxisRenderer not called #3293

tijee opened this issue Feb 23, 2018 · 1 comment

Comments

@tijee
Copy link

tijee commented Feb 23, 2018

I set a custom XAxisRenderer to my LineChart, but its computeAxisValues is never called. I have to call it myself programmatically, and even then it does not work as expected.

I also tried to manually set the entries to the xAxis, but again it does not work, as if something else would override my code afterwards and replace the xAxis values I set. The only thing that works is when I force the label count, but the values are still generated and not those I want.

Any idea?

@liuxuan30
Copy link
Member

computeAxisValues will be called automatically, if your xAxis.enabled = YES
Please refer ChartsDemo and ask on stack overflow in the future.

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