public void addPieSlice ( PieModel _Slice ) { highlightSlice ( _Slice ) ; mPieData . add ( _Slice ) ; mTotalValue += _Slice . getValue ( ) ; onDataChanged ( ) ; }
Adds a new Pie Slice to the PieChart . After inserting and calculation of the highlighting color a complete recalculation is initiated .