citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/GovernmentBodyChartDataManagerImpl.java
private void addAnnualSummary(final Map<String, List<GovernmentBodyAnnualOutcomeSummary>> report, final VerticalLayout content,
			final String label) {

		final DataSeries dataSeries = new DataSeries();
		final Series series = new Series();

		for (final Entry<String, List<GovernmentBodyAnnualOutcomeSummary>> entry : report.entrySet()) {

			final List<GovernmentBodyAnnualOutcomeSummary> allValues = entry.getValue();

			if (!allValues.isEmpty()) {
				addAnnualSummaryData(dataSeries, series, entry, allValues);
			}
		}

		addChart(content, label,
				new DCharts().setDataSeries(dataSeries)
						.setOptions(getChartOptions().createOptionsXYDateFloatLogYAxisLegendOutside(series)).show(),
				true);
	}
private void addAnnualSummary(final Map<String, List<GovernmentBodyAnnualOutcomeSummary>> report, final VerticalLayout content,
			final String label) {

		final DataSeries dataSeries = new DataSeries();
		final Series series = new Series();

		for (final Entry<String, List<GovernmentBodyAnnualOutcomeSummary>> entry : report.entrySet()) {

			final List<GovernmentBodyAnnualOutcomeSummary> allValues = entry.getValue();

			if (!allValues.isEmpty()) {
				addAnnualSummaryData(dataSeries, series, entry, allValues);
			}
		}

		addChart(content, label,
				new DCharts().setDataSeries(dataSeries)
						.setOptions(getChartOptions().createOptionsXYDateFloatLogYAxisLegendOutside(series)).show(),
				true);
	}
private void addAnnualSummary ( final Map < String , List < GovernmentBodyAnnualOutcomeSummary > > report , final VerticalLayout content , final String label ) { final DataSeries dataSeries = new DataSeries ( ) ; final Series series = new Series ( ) ; for ( final Entry < String , List < GovernmentBodyAnnualOutcomeSummary > > entry : report . entrySet ( ) ) { final List < GovernmentBodyAnnualOutcomeSummary > allValues = entry . getValue ( ) ; if ( ! allValues . isEmpty ( ) ) { addAnnualSummaryData ( dataSeries , series , entry , allValues ) ; } } addChart ( content , label , new DCharts ( ) . setDataSeries ( dataSeries ) . setOptions ( getChartOptions ( ) . createOptionsXYDateFloatLogYAxisLegendOutside ( series ) ) . show ( ) , true ) ; }
Adds the annual summary.

@param report
the report
@param content
the content
@param label
the label
Adds the annual summary .