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

set the Y range #1079

Closed
orensha opened this issue May 26, 2016 · 4 comments
Closed

set the Y range #1079

orensha opened this issue May 26, 2016 · 4 comments

Comments

@orensha
Copy link

orensha commented May 26, 2016

i want the minimum and maximum values to be exactly the start and the begining of the y range.
i need it to fixed every time. how can i do it?

@orensha
Copy link
Author

orensha commented May 30, 2016

Hi, that's the closest thing i could find at least by the name of the method:
"[_chartView setVisibleYRangeMaximum:_yLength axis:0];"
it doesn't work. is there any way of doing this?

for example CorePlot has this line:

plotSpace.yRange = [CPTPlotRange plotRangeWithLocation:CPTDecimalFromFloat(minValue)
length:CPTDecimalFromFloat(_yLength)];

@orensha
Copy link
Author

orensha commented Jun 8, 2016

or at least get the area that you set for the graph?

@danielgindi
Copy link
Collaborator

To limit the y range - you can use axisMinValue/axisMaxValue.
If you do not limit it - it will automatically be the min/max values of your y axis.
So I don't see where the problem lies...

@orensha
Copy link
Author

orensha commented Jun 13, 2016

i needed to transform the actual value to the container frame point. thats why i needed it to be fixed. but i found that you enabled it with "getPixelForValue". thanks.

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

2 participants