Anonymous - 2015-07-11

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:

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.