@@ -80,17 +80,17 @@ protected void onCreate(Bundle savedInstanceState) {
8080
8181 // IMPORTANT: When using negative values in stacked bars, always make sure the negative values are in the array first
8282 ArrayList <BarEntry > yValues = new ArrayList <BarEntry >();
83- yValues .add (new BarEntry (new float []{ -10 , 10 }, 0 ));
84- yValues .add (new BarEntry (new float []{ -12 , 13 }, 1 ));
85- yValues .add (new BarEntry (new float []{ -15 , 15 }, 2 ));
86- yValues .add (new BarEntry (new float []{ -17 , 17 }, 3 ));
87- yValues .add (new BarEntry (new float []{ -19 , 20 }, 4 ));
88- yValues .add (new BarEntry (new float []{ -19 , 19 }, 5 ));
89- yValues .add (new BarEntry (new float []{ -16 , 16 }, 6 ));
90- yValues .add (new BarEntry (new float []{ -13 , 14 }, 7 ));
91- yValues .add (new BarEntry (new float []{ -10 , 11 }, 8 ));
92- yValues .add (new BarEntry (new float []{ -5 , 6 }, 9 ));
93- yValues .add (new BarEntry (new float []{ -1 , 2 }, 10 ));
83+ yValues .add (new BarEntry (0 , new float []{ -10 , 10 }));
84+ yValues .add (new BarEntry (1 , new float []{ -12 , 13 }));
85+ yValues .add (new BarEntry (2 , new float []{ -15 , 15 }));
86+ yValues .add (new BarEntry (3 , new float []{ -17 , 17 }));
87+ yValues .add (new BarEntry (4 , new float []{ -19 , 20 }));
88+ yValues .add (new BarEntry (5 , new float []{ -19 , 19 }));
89+ yValues .add (new BarEntry (6 , new float []{ -16 , 16 }));
90+ yValues .add (new BarEntry (7 , new float []{ -13 , 14 }));
91+ yValues .add (new BarEntry (8 , new float []{ -10 , 11 }));
92+ yValues .add (new BarEntry (9 , new float []{ -5 , 6 }));
93+ yValues .add (new BarEntry (10 , new float []{ -1 , 2 }));
9494
9595 BarDataSet set = new BarDataSet (yValues , "Age Distribution" );
9696 set .setValueFormatter (new CustomFormatter ());
0 commit comments