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

X Values Hidden On Bar Graph #2774

Closed
martheli opened this issue Sep 6, 2017 · 2 comments
Closed

X Values Hidden On Bar Graph #2774

martheli opened this issue Sep 6, 2017 · 2 comments

Comments

@martheli
Copy link

martheli commented Sep 6, 2017

I assume the values are hidden because of space issues but there looks to be enough space. Is there a way to force the x values to show up?

I have the following in my code:

chartview.xAxis.granularityEnabled = true
chartview.rightAxis.axisMinimum = 0.0
chartview.leftAxis.axisMinimum = 0.0

But it still hides the values.

screen shot 2017-09-06 at 7 47 06 pm

@seenoevo
Copy link

seenoevo commented Sep 7, 2017

you need to set the xAxis labelCount, i.e.:

barChartView.xAxis.setLabelCount(array.count, force: false)

problem solved! :)

@martheli
Copy link
Author

martheli commented Sep 7, 2017

@seenoevo worked like a charm :) Thanks!

@martheli martheli closed this as completed Sep 7, 2017
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