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

Set space between labels in xAxis #1865

Closed
brenoBohm opened this issue Nov 21, 2016 · 1 comment
Closed

Set space between labels in xAxis #1865

brenoBohm opened this issue Nov 21, 2016 · 1 comment

Comments

@brenoBohm
Copy link

How can I decrease the minimum space between the xAxix labels using swift 3.0? My graph is a BarChartView!

@liuxuan30
Copy link
Member

liuxuan30 commented Nov 22, 2016

You can reduce the label counts by setLabelCount, granularity. computeAxisValues() is where it calculates the x axis labels. Just read the func and you know how it works.
The idea is, the more x axis labels are, the smaller the space. But for the space between labels.. It seems like you can't change it directly.

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