private BarData generateData(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.setBarShadowColor(Color.rgb(203,203,203));
  ArrayList<BarDataSet> sets=new ArrayList<BarDataSet>();
  sets.add(d);
  BarData cd=new BarData(getMonths(),sets);
  return cd;
}

private BarData generateData ( 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 . setBarShadowColor ( Color . rgb ( 203 , 203 , 203 ) ) ; ArrayList < BarDataSet > sets = new ArrayList < BarDataSet > ( ) ; sets . add ( d ) ; BarData cd = new BarData ( getMonths ( ) , sets ) ; return cd ; }
generates a random chartdata object with just one dataset
