public void update ( final List < Long > groupTargetCounts , final Long totalTargetCount ) { this . groupTargetCounts = groupTargetCounts ; this . totalTargetCount = totalTargetCount ; if ( groupTargetCounts != null ) { long sum = 0 ; for ( Long targetCount : groupTargetCounts ) { sum += targetCount ; } unassignedTargets = totalTargetCount - sum ; } draw ( ) ; }
Updates the pie chart with new data