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

Graphs gets cut from both ends #2785

Closed
poojaagarwal1331 opened this issue Sep 13, 2017 · 6 comments
Closed

Graphs gets cut from both ends #2785

poojaagarwal1331 opened this issue Sep 13, 2017 · 6 comments

Comments

@poojaagarwal1331
Copy link

Like this:- http://prntscr.com/gknml4

But by changing these two lines will resolve the issue but for that, I have to unlock the pods as accessing and changing the variable from my view doesn't reflect the required change.

Change in Pod:-

/// Extra spacing for axisMinimum to be added to automatically calculated axisMinimum
open var spaceMin: Double = 0.45

/// Extra spacing for `axisMaximum` to be added to automatically calculated `axisMaximum`

open var spaceMax: Double = 0.45in AxisBase.swift file.

Changing from view:-

combineChartView.xAxis.axisMinimum = combineChartView.xAxis.axisMinimum - 0.45 combineChartView.xAxis.axisMaximum = combineChartView.xAxis.axisMaximum + 0.45

Thanks in advance.

@tuanla6242
Copy link

Thank you!

@liuxuan30
Copy link
Member

liuxuan30 commented Sep 15, 2017

not sure what's this for, seem self answered.

@poojaagarwal1331
Copy link
Author

It's just I want to know whether any solutions apart from this as I need to change every time from pods after pod updations.

@liuxuan30
Copy link
Member

there are ways like subclassing.

@poojaagarwal1331
Copy link
Author

I did that but its not working, although took the default value only.
Any other help would be appreciated.

@liuxuan30
Copy link
Member

liuxuan30 commented Sep 22, 2017

both axisMinimum and spaceMin are open vars which have the highest access level, you can do whatever you like in your sub classes from anywhere. If you still see it's default value, you shall set it after the super class finishes first.

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