diogobernardino / williamchart

Android Library to rapidly develop attractive and insightful charts in android applications.
5.1k stars 800 forks source link

gettinf Index out of bound error #183

Closed sidthakrey007 closed 7 years ago

sidthakrey007 commented 7 years ago

It renders line chart properly bu after 10 sec app crashes checke LineChartView.java

Line 178 setSize = data.get(0).size(); for (int j = 0; j < setSize; j++) {

            x = data.get(i).getEntry(j).getX();
            y = data.get(i).getEntry(j).getY();
            regions.get(i)
                      .get(j)

the first line should be setSize = data.get(i).size();

diogobernardino commented 7 years ago

I don't see any problem about having it data.get(**i**).size(), but the 0 shouldn't be a problem as long as you have the same number of entries per set (which needs to be always the case). Can you share the data where it is failing?

diogobernardino commented 7 years ago

Shall I disregard this?

sidthakrey007 commented 7 years ago

yes i am doing that