question: private BarData generateDataBar ( int cnt ) { ArrayList < BarEntry > entries = new ArrayList < BarEntry > ( ) ; for ( int i = 0 ; i < 12 ; i ++ ) { entries . add ( new BarEntry ( ( int ) ( Math . random ( ) * 70 ) + 30 , i ) ) ; } BarDataSet d = new BarDataSet ( entries , "New DataSet " + cnt ) ; d . setBarSpacePercent ( 20f ) ; d . setColors ( ColorTemplate . VORDIPLOM_COLORS ) ; d . setHighLightAlpha ( 255 ) ; BarData cd = new BarData ( getMonths ( ) , d ) ; return cd ; }
target:  generates a random ChartData object with just one DataSet