private static void addNewDataSerie ( final DataSeries dataSeries , final Series series , final SimpleDateFormat simpleDateFormat , final SimpleDateFormat parseIncomingDateFormat , final Entry < String , List < ViewRiksdagenOrgDocumentDailySummary > > entry ) { series . addSeries ( new XYseries ( ) . setLabel ( entry . getKey ( ) ) ) ; dataSeries . newSeries ( ) ; if ( entry . getValue ( ) != null ) { for ( final ViewRiksdagenOrgDocumentDailySummary item : entry . getValue ( ) ) { addDataItem ( dataSeries , simpleDateFormat , parseIncomingDateFormat , item ) ; } } }
Adds the new data serie .