private static void addPartyData(final DataSeries dataSeries, final SimpleDateFormat simpleDateFormat,
			final List<ViewRiksdagenVoteDataBallotPartySummaryDaily> list, final Function<ViewRiksdagenVoteDataBallotPartySummaryDaily, Object> t) {
		dataSeries.newSeries();
		for (final ViewRiksdagenVoteDataBallotPartySummaryDaily viewRiksdagenVoteDataBallotPartySummaryDaily : list) {
			if (viewRiksdagenVoteDataBallotPartySummaryDaily != null) {
				dataSeries.add(
						simpleDateFormat
								.format(viewRiksdagenVoteDataBallotPartySummaryDaily.getEmbeddedId().getVoteDate()),
						t.apply(viewRiksdagenVoteDataBallotPartySummaryDaily));
			}
		}
	}
private static void addPartyData(final DataSeries dataSeries, final SimpleDateFormat simpleDateFormat,
			final List<ViewRiksdagenVoteDataBallotPartySummaryDaily> list, final Function<ViewRiksdagenVoteDataBallotPartySummaryDaily, Object> t) {
		dataSeries.newSeries();
		for (final ViewRiksdagenVoteDataBallotPartySummaryDaily viewRiksdagenVoteDataBallotPartySummaryDaily : list) {
			if (viewRiksdagenVoteDataBallotPartySummaryDaily != null) {
				dataSeries.add(
						simpleDateFormat
								.format(viewRiksdagenVoteDataBallotPartySummaryDaily.getEmbeddedId().getVoteDate()),
						t.apply(viewRiksdagenVoteDataBallotPartySummaryDaily));
			}
		}
	}
private static void addPartyData ( final DataSeries dataSeries , final SimpleDateFormat simpleDateFormat , final List < ViewRiksdagenVoteDataBallotPartySummaryDaily > list , final Function < ViewRiksdagenVoteDataBallotPartySummaryDaily , Object > t ) { dataSeries . newSeries ( ) ; for ( final ViewRiksdagenVoteDataBallotPartySummaryDaily viewRiksdagenVoteDataBallotPartySummaryDaily : list ) { if ( viewRiksdagenVoteDataBallotPartySummaryDaily != null ) { dataSeries . add ( simpleDateFormat . format ( viewRiksdagenVoteDataBallotPartySummaryDaily . getEmbeddedId ( ) . getVoteDate ( ) ) , t . apply ( viewRiksdagenVoteDataBallotPartySummaryDaily ) ) ; } } }
Adds the party data.

@param dataSeries       the data series
@param simpleDateFormat the simple date format
@param list             the list
@param t                the t
Adds the party data .