Reputation: 1331
I am doing chart applications using achart engine for my application. I created bar chart, dual line chart and line chart . Now i am doing combined chart for bar and line charts. . But i got some error on this code.
Upvotes: 0
Views: 237
Reputation: 1331
Yes i got the answer . I did some silly mistake in the following line
String[] titles = new String[] { "Actual", "Budget" };
Actually here i have to give one option. So its obviously arise ArrayIndexOutOfBoundsException . Thank you all.
Upvotes: 1
Reputation: 25830
i am Not Sure but you Should Replace the
values.add(new double[] { 5000,4000,3100,2000,200,-1200,-300,200,1000,200,500,200});
with
for (int i = 0; i < titles.length; i++) {
values.add(new double[] { 5000,4000,3100,2000,200,-1200,-300,200,1000,200,500,200});
}
Upvotes: 1