private static void addDocumentHistoryByPartyData ( final DataSeries dataSeries , final Series series , final Map < String , List < ViewRiksdagenPartyDocumentDailySummary > > map ) { final SimpleDateFormat simpleDateFormat = new SimpleDateFormat ( DD_MMM_YYYY , Locale . ENGLISH ) ; for ( final Entry < String , List < ViewRiksdagenPartyDocumentDailySummary > > entry : map . entrySet ( ) ) { series . addSeries ( new XYseries ( ) . setLabel ( entry . getKey ( ) ) ) ; dataSeries . newSeries ( ) ; if ( entry . getValue ( ) != null ) { for ( final ViewRiksdagenPartyDocumentDailySummary item : entry . getValue ( ) ) { dataSeries . add ( simpleDateFormat . format ( item . getEmbeddedId ( ) . getPublicDate ( ) ) , item . getTotal ( ) ) ; } } else { LOGGER . info ( LOG_MSG_MISSING_DATA_FOR_KEY , entry ) ; } } }
Adds the document history by party data .