private void addBallotData ( final DataValueCalculator dataValueCalculator , final DataSeries dataSeries , final SimpleDateFormat simpleDateFormat , final Series series , final Entry < String , List < ViewRiksdagenVoteDataBallotPartySummaryDaily > > entry ) { series . addSeries ( new XYseries ( ) . setLabel ( getPartyName ( entry . getKey ( ) ) ) ) ; dataSeries . newSeries ( ) ; final List < ViewRiksdagenVoteDataBallotPartySummaryDaily > list = entry . getValue ( ) ; for ( final ViewRiksdagenVoteDataBallotPartySummaryDaily viewRiksdagenVoteDataBallotPartySummaryDaily : list ) { if ( viewRiksdagenVoteDataBallotPartySummaryDaily != null ) { dataSeries . add ( simpleDateFormat . format ( viewRiksdagenVoteDataBallotPartySummaryDaily . getEmbeddedId ( ) . getVoteDate ( ) ) , dataValueCalculator . getDataValue ( viewRiksdagenVoteDataBallotPartySummaryDaily ) ) ; } } }
Adds the ballot data .