When more than some datasets (around 6 or more) to a line graph, we are getting an exception.
This is the detail:
java.lang.IllegalArgumentException: One or more of the DataSet Entry arrays are longer than the x-values array of this ChartData object.
at com.github.mikephil.charting.data.ChartData.isLegal(ChartData.java:173)
at com.github.mikephil.charting.data.ChartData.init(ChartData.java:130)
at com.github.mikephil.charting.data.ChartData.<init>(ChartData.java:96)
at com.github.mikephil.charting.data.BarLineScatterCandleData.<init>(BarLineScatterCandleData.java:27)
at com.github.mikephil.charting.data.LineData.<init>(LineData.java:27)
I am not able to understand the reason why.
I am using MPAndroidChart to plot the graph.
When more data sets are entered, we are getting that exception.