private void addAnnualData ( final VerticalLayout content , final String name , final String label , final Map < String , List < GovernmentBodyAnnualOutcomeSummary > > collect ) { final DataSeries dataSeries = new DataSeries ( ) ; final Series series = new Series ( ) ; final SimpleDateFormat simpleDateFormat = new SimpleDateFormat ( "yyyy-MM-dd" , Locale . ENGLISH ) ; for ( final Entry < String , List < GovernmentBodyAnnualOutcomeSummary > > entry : collect . entrySet ( ) ) { series . addSeries ( new XYseries ( ) . setLabel ( entry . getKey ( ) ) ) ; dataSeries . newSeries ( ) ; addEntryData ( dataSeries , simpleDateFormat , entry ) ; } addChart ( content , name + label , new DCharts ( ) . setDataSeries ( dataSeries ) . setOptions ( getChartOptions ( ) . createOptionsXYDateFloatLogYAxisLegendOutside ( series ) ) . show ( ) , true ) ; }
Adds the annual data .