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

Line chart right axis inset #2781

Closed
npmrtsv opened this issue Sep 11, 2017 · 1 comment
Closed

Line chart right axis inset #2781

npmrtsv opened this issue Sep 11, 2017 · 1 comment

Comments

@npmrtsv
Copy link

npmrtsv commented Sep 11, 2017

I have labels overlap

screen shot 2017-09-11 at 5 13 02 pm

I'm trying to change min/max values of axis to make an offset

let offset = (chart.rightAxis.axisMaximum - chart.rightAxis.axisMinimum)/5 chart.rightAxis.axisMinimum = chart.rightAxis.axisMinimum - offset chart.rightAxis.axisMaximum = chart.rightAxis.axisMaximum + offset

But it doesn't affect line, only axis

screen shot 2017-09-11 at 5 19 29 pm

Same way with xAxis works like a charm
How can I prevent overlap?

@npmrtsv
Copy link
Author

npmrtsv commented Sep 11, 2017

Ok, just found solution,

lineChartDataSet.axisDependency = .right

@npmrtsv npmrtsv closed this as completed Sep 11, 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

1 participant