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

Adjustable Graph Size #35

Closed
joshbuhler opened this issue Dec 7, 2010 · 3 comments
Closed

Adjustable Graph Size #35

joshbuhler opened this issue Dec 7, 2010 · 3 comments

Comments

@joshbuhler
Copy link

I'd like to be able to define a custom frame for the graphview, and have it render in that, instead of a full screen landscape view.

@ncolon
Copy link

ncolon commented Dec 16, 2010

+1

@joshbuhler
Copy link
Author

I've actually started a new branch that adds this feature (and a couple others I needed): https://github.com/joshbuhler/tapkulibrary/tree/graphSize

My changes are in my "graphSize" branch.

However, there's an interesting issue with it when running in the Tapku sample app, where when the orientation changes, the some of the frame coordinates for width & height are swapped, causing some layout issues. I haven't dug into it enough yet though to see if the issue is an error in my code, or with how the sample creates the graphView.

@mehtaVikram
Copy link

HI in TKGraphController.m line 46, I changed it to

graph = [[TKGraphView alloc] initWithFrame:CGRectMake(0, 0, 320, 300)]; //vm

I have hardcoded values but you can easily add a int variable to the class interface and set the size.

Pls note that when you resize the graph the goal label will fly out of screen. See my other issue and I have given code for the fix too.

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

No branches or pull requests

4 participants