Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

change difference of min/max points #17

Closed
adrian-schnell opened this issue Apr 21, 2014 · 8 comments
Closed

change difference of min/max points #17

adrian-schnell opened this issue Apr 21, 2014 · 8 comments
Labels

Comments

@adrian-schnell
Copy link

With your help, I was able to add the marks for min and max. Thanks again for that.

Now I want to make the difference between the two lines bigger.
The chart should start at about the middle of the screenshot - the max line should stay.
Can you give me a hint, what and how to change the code to get this result?

screenshot 2014-04-21 22 25 14

@Boris-Em
Copy link
Owner

Hi again @rootilein!
You are very welcome.
I'm not sure if I understand correctly what you are trying to achieve here. Do you basically want the bottom of the graph to be lower in the UIView?

@adrian-schnell
Copy link
Author

sorry for the bad explanation :D
I want to make the Peak-to-peak amplitude bigger - but the max Y values should stay at the place they are at the moment. hope now my problem is clear?

@Boris-Em
Copy link
Owner

No problem!
If I'm correct, your changed the Padding in BEMSimpleLineGraphView.m to 200. Try to play around with this value (I would reduce it).
Keep it mind that you have to use the same value for the min line too:

    float minYPosition = (self.myGraph.frame.size.height - padding) - ((min - min) / ((max - min) / (self.myGraph.frame.size.height - padding))) + 30;

Let me know if it's not what you were looking for.

@adrian-schnell
Copy link
Author

(thumbs up)
exactly what I needed...

when our app is ready for the store, I'll send you the link. You've to see your code working in our app ;)

@Boris-Em
Copy link
Owner

@rootilein. I would love to take a look at it! Thanks =)

@adrian-schnell
Copy link
Author

@Boris-Em
Copy link
Owner

Great! Thank you for sharing. The app looks fantastic!

@adrian-schnell
Copy link
Author

If you didn't download it yesterday (it was for free), I can send you one promocode if you give me your e-mail. ;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants