citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/PoliticianDataManagerImpl.java
private static void addPoliticanData(final List<ViewRiksdagenVoteDataBallotPoliticianSummaryDaily> list,
			final DataSeries dataSeries, final SimpleDateFormat simpleDateFormat, final Function<ViewRiksdagenVoteDataBallotPoliticianSummaryDaily, Object> t) {
		dataSeries.newSeries();
		for (final ViewRiksdagenVoteDataBallotPoliticianSummaryDaily viewRiksdagenVoteDataBallotPoliticianSummaryDaily : list) {
			if (viewRiksdagenVoteDataBallotPoliticianSummaryDaily != null) {
				dataSeries.add(
						simpleDateFormat.format(
								viewRiksdagenVoteDataBallotPoliticianSummaryDaily.getEmbeddedId().getVoteDate()),
						t.apply(viewRiksdagenVoteDataBallotPoliticianSummaryDaily));
			}
		}
	}
private static void addPoliticanData(final List<ViewRiksdagenVoteDataBallotPoliticianSummaryDaily> list,
			final DataSeries dataSeries, final SimpleDateFormat simpleDateFormat, final Function<ViewRiksdagenVoteDataBallotPoliticianSummaryDaily, Object> t) {
		dataSeries.newSeries();
		for (final ViewRiksdagenVoteDataBallotPoliticianSummaryDaily viewRiksdagenVoteDataBallotPoliticianSummaryDaily : list) {
			if (viewRiksdagenVoteDataBallotPoliticianSummaryDaily != null) {
				dataSeries.add(
						simpleDateFormat.format(
								viewRiksdagenVoteDataBallotPoliticianSummaryDaily.getEmbeddedId().getVoteDate()),
						t.apply(viewRiksdagenVoteDataBallotPoliticianSummaryDaily));
			}
		}
	}
private static void addPoliticanData ( final List < ViewRiksdagenVoteDataBallotPoliticianSummaryDaily > list , final DataSeries dataSeries , final SimpleDateFormat simpleDateFormat , final Function < ViewRiksdagenVoteDataBallotPoliticianSummaryDaily , Object > t ) { dataSeries . newSeries ( ) ; for ( final ViewRiksdagenVoteDataBallotPoliticianSummaryDaily viewRiksdagenVoteDataBallotPoliticianSummaryDaily : list ) { if ( viewRiksdagenVoteDataBallotPoliticianSummaryDaily != null ) { dataSeries . add ( simpleDateFormat . format ( viewRiksdagenVoteDataBallotPoliticianSummaryDaily . getEmbeddedId ( ) . getVoteDate ( ) ) , t . apply ( viewRiksdagenVoteDataBallotPoliticianSummaryDaily ) ) ; } } }
Adds the politican data.

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