private void createChart() {
chartSpace = CTChartSpace.Factory.newInstance();
chart = chartSpace.addNewChart();
CTPlotArea plotArea = chart.addNewPlotArea();
CTLayout layout = plotArea.addNewLayout();
CTManualLayout manualLayout = layout.addNewManualLayout();
manualLayout.addNewLayoutTarget().setVal(STLayoutTarget.INNER);
manualLayout.addNewXMode().setVal(STLayoutMode.EDGE);
manualLayout.addNewYMode().setVal(STLayoutMode.EDGE);
manualLayout.addNewX().setVal(0);
manualLayout.addNewY().setVal(0);
manualLayout.addNewW().setVal(0.65);
manualLayout.addNewH().setVal(0.8);
chart.addNewPlotVisOnly().setVal(true);
CTPrintSettings printSettings = chartSpace.addNewPrintSettings();
printSettings.addNewHeaderFooter();
CTPageMargins pageMargins = printSettings.addNewPageMargins();