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

How to prevent xAxis values and dataset value get overlapped ? #854

Closed
rv928 opened this issue Mar 17, 2016 · 6 comments
Closed

How to prevent xAxis values and dataset value get overlapped ? #854

rv928 opened this issue Mar 17, 2016 · 6 comments

Comments

@rv928
Copy link

rv928 commented Mar 17, 2016

I have enabled public var wordWrapEnabled = true for multiple line labels on xAxis. but now facing problem with xAxis label is overlapping below labels.
screen shot 2016-03-17 at 5 04 34 pm

@liuxuan30
Copy link
Member

@danielgindi seems another bug that calculating the legend position not considering wrapping?

@danielgindi
Copy link
Collaborator

There's no way to know ahead of time how much space you will need, especially considering the visible labels could change when interacting with the chart, and how costly it is to calculate text bounds.

So if you suspect that your chart may have really long labels and with word-wrapping enabled - just add extra padding on the bottom. There's a property for that :-)

@rv928
Copy link
Author

rv928 commented Mar 18, 2016

ok thanks, can you please let me know from where or which class i can change in code to add padding to solve this issue?

@danielgindi
Copy link
Collaborator

That's the chart view

@rv928
Copy link
Author

rv928 commented Mar 18, 2016

LineChartView.swift ?

@rv928
Copy link
Author

rv928 commented Mar 18, 2016

hi thanks issue solved.

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

3 participants