-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Resize chart due to data update #517
Comments
are you looking for #263? |
The chart automatically updates when there's a size change On Thu, Oct 29, 2015 at 12:11 PM, Xuan notifications@github.com wrote:
|
Thank you for your quick answer @liuxuan30 : It's a bit different, but I will try this function thanks. When I reach the end of the chart I do this but it looks that it doesn't perform this change. What is wrong ? :
@danielgindi : I've edited my post so you can see that the chart is not resized. What I want is to keep the same scale. Is it possible ? |
@jibax seems you did some wrapping; what you mean For the frame, you should see the new width. Are you using auto layout? To me the code totally fine. |
@liuxuan30 Thank you for your answer. I edited my code and it is working now. The problem is about constraints because I would love to display my chart in landscape. The LineChartView is contained inside a UIScrollView (full width but not in full width) : How is reacting the chart with constraints ? Because mine disappears as soon as I apply constraints to LineChartView. Thank you |
The problem is not with the chart, but with the fact that constraints in In my app, for example, I have a horizontal scroll view containing multiple And all of those charts are inside an extra view inside the scrollview, בתאריך יום שישי, 30 באוקטובר 2015, jibax notifications@github.com כתב:
|
@danielgindi Yes Daniel you are right, constraints with UIScrollView are really complex. My last question is, is there a maximum number of values that the chart can take in account ? Because my chart disappears when there is more than 160 values or it is a problem with the view ? Thank you |
No, but the word 'disappears' is not clear enough to guess what happened. |
closing as no update and further issue; reopen if you have update |
Hello,
I have the same problem as mlorenzeCDS who posted it 26 days ago here #440 .
What I want to do is to to add values to my linechart when the user scrolls and reach the end of the chart. The chart is inside a UIView, which is contained a UIScrollView so I would like to update the UIView's size in order to keep the chart readability.
Initial situation :
http://hpics.li/a2c9f2a
After reaching the end of the chart :
http://hpics.li/a53b75e
My questions are :
Thanks a lot for your help!
The text was updated successfully, but these errors were encountered: