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;
}

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 ; }
generates a random chartdata object with just one dataset
