question: private PieData generateDataPie ( int cnt ) { ArrayList < Entry > entries = new ArrayList < Entry > ( ) ; for ( int i = 0 ; i < 4 ; i ++ ) { entries . add ( new Entry ( ( int ) ( Math . random ( ) * 70 ) + 30 , i ) ) ; } PieDataSet d = new PieDataSet ( entries , "" ) ; d . setSliceSpace ( 2f ) ; d . setColors ( ColorTemplate . VORDIPLOM_COLORS ) ; PieData cd = new PieData ( getQuarters ( ) , d ) ; return cd ; }
target:  generates a random ChartData object with just one DataSet