private static void addData(final Map<String, List<ViewRiksdagenPartyCoalationAgainstAnnualSummary>> map,
			final Series series, final DataSeries dataSeries) {
		final Set<Entry<String, List<ViewRiksdagenPartyCoalationAgainstAnnualSummary>>> entryMap = map.entrySet();

		for (final Entry<String, List<ViewRiksdagenPartyCoalationAgainstAnnualSummary>> entry : entryMap) {
			if (!entry.getValue().isEmpty()) {
				series.addSeries(new XYseries().setLabel(entry.getKey()));

				dataSeries.newSeries();
				for (final ViewRiksdagenPartyCoalationAgainstAnnualSummary data : entry.getValue()) {
					dataSeries.add(data.getEmbeddedId().getYear() + "-01-01", data.getTotal());
				}
			}
		}
	}
private static void addData(final Map<String, List<ViewRiksdagenPartyCoalationAgainstAnnualSummary>> map,
			final Series series, final DataSeries dataSeries) {
		final Set<Entry<String, List<ViewRiksdagenPartyCoalationAgainstAnnualSummary>>> entryMap = map.entrySet();

		for (final Entry<String, List<ViewRiksdagenPartyCoalationAgainstAnnualSummary>> entry : entryMap) {
			if (!entry.getValue().isEmpty()) {
				series.addSeries(new XYseries().setLabel(entry.getKey()));

				dataSeries.newSeries();
				for (final ViewRiksdagenPartyCoalationAgainstAnnualSummary data : entry.getValue()) {
					dataSeries.add(data.getEmbeddedId().getYear() + "-01-01", data.getTotal());
				}
			}
		}
	}
private static void addData ( final Map < String , List < ViewRiksdagenPartyCoalationAgainstAnnualSummary > > map , final Series series , final DataSeries dataSeries ) { final Set < Entry < String , List < ViewRiksdagenPartyCoalationAgainstAnnualSummary > > > entryMap = map . entrySet ( ) ; for ( final Entry < String , List < ViewRiksdagenPartyCoalationAgainstAnnualSummary > > entry : entryMap ) { if ( ! entry . getValue ( ) . isEmpty ( ) ) { series . addSeries ( new XYseries ( ) . setLabel ( entry . getKey ( ) ) ) ; dataSeries . newSeries ( ) ; for ( final ViewRiksdagenPartyCoalationAgainstAnnualSummary data : entry . getValue ( ) ) { dataSeries . add ( data . getEmbeddedId ( ) . getYear ( ) + "-01-01" , data . getTotal ( ) ) ; } } } }
Adds the data.

@param map the map
@param series the series
@param dataSeries the data series
Adds the data .