New to iOS dev and really like what you've done here. Just wondering - what is the best way to deal with a screen rotation and redrawing a chart with different bounds. Thanks!
You have to listen on orientation change event, here for example you can see how to do it.
Then, on orientation change:
chart.clearView()initChart()// create chart instance and add it's view as a subview
You may want to adjust the chart initialization depending on what exactly you need. For example to show more intervals in the x-axis in landscape mode.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: i-schuetz
You have to listen on orientation change event, here for example you can see how to do it.
Then, on orientation change:
You may want to adjust the chart initialization depending on what exactly you need. For example to show more intervals in the x-axis in landscape mode.