citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/AbstractChartDataManagerImpl.java
protected final void addChart(final AbstractOrderedLayout content,final String caption, final DCharts chart, final boolean fullPage) {
		final HorizontalLayout horizontalLayout = new HorizontalLayout();

		final int browserWindowWidth = getChartWindowWidth();

		final int browserWindowHeight = getChartWindowHeight(fullPage);

		horizontalLayout.setWidth(browserWindowWidth, Unit.PIXELS);
		horizontalLayout.setHeight(browserWindowHeight, Unit.PIXELS);
		horizontalLayout.setMargin(true);
		horizontalLayout.setSpacing(false);
		horizontalLayout.addStyleName("v-layout-content-overview-panel-level1");

		final Panel formPanel = new Panel();
		formPanel.setSizeFull();
		formPanel.setContent(horizontalLayout);
		formPanel.setCaption(caption);

		content.addComponent(formPanel);
		content.setExpandRatio(formPanel, ContentRatio.LARGE);


		chart.setWidth(100, Unit.PERCENTAGE);
		chart.setHeight(100, Unit.PERCENTAGE);
		chart.setMarginRight(CHART_RIGHT_MARGIN);
		chart.setMarginLeft(CHART_LEFT_MARGIN);
		chart.setMarginBottom(CHART_BOTTOM_MARGIN_SIZE);
		chart.setMarginTop(CHART_TOP_MARGIN_SIZE);

		horizontalLayout.addComponent(chart);
		chart.setCaption(caption);
	}
protected final void addChart(final AbstractOrderedLayout content,final String caption, final DCharts chart, final boolean fullPage) {
		final HorizontalLayout horizontalLayout = new HorizontalLayout();

		final int browserWindowWidth = getChartWindowWidth();

		final int browserWindowHeight = getChartWindowHeight(fullPage);

		horizontalLayout.setWidth(browserWindowWidth, Unit.PIXELS);
		horizontalLayout.setHeight(browserWindowHeight, Unit.PIXELS);
		horizontalLayout.setMargin(true);
		horizontalLayout.setSpacing(false);
		horizontalLayout.addStyleName("v-layout-content-overview-panel-level1");

		final Panel formPanel = new Panel();
		formPanel.setSizeFull();
		formPanel.setContent(horizontalLayout);
		formPanel.setCaption(caption);

		content.addComponent(formPanel);
		content.setExpandRatio(formPanel, ContentRatio.LARGE);


		chart.setWidth(100, Unit.PERCENTAGE);
		chart.setHeight(100, Unit.PERCENTAGE);
		chart.setMarginRight(CHART_RIGHT_MARGIN);
		chart.setMarginLeft(CHART_LEFT_MARGIN);
		chart.setMarginBottom(CHART_BOTTOM_MARGIN_SIZE);
		chart.setMarginTop(CHART_TOP_MARGIN_SIZE);

		horizontalLayout.addComponent(chart);
		chart.setCaption(caption);
	}
Adds the chart.

@param content
the content
@param caption
the caption
@param chart
the chart
@param fullPage
the full page