// For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Java Document doc = new Document(); DocumentBuilder builder = new DocumentBuilder(doc); Shape shape = builder.insertChart(ChartType.LINE, 432, 252); Chart chart = shape.getChart(); // Determines whether the title shall be shown for this chart. Default is true. chart.getTitle().setShow(true); // Setting chart Title. chart.getTitle().setText("Sample Line Chart Title"); // Determines whether other chart elements shall be allowed to overlap title. chart.getTitle().setOverlay(false); // Please note if null or empty value is specified as title text, auto generated title will be shown. // Determines how legend shall be shown for this chart. chart.getLegend().setPosition(LegendPosition.LEFT); chart.getLegend().setOverlay(true); doc.save(dataDir + "ChartAppearance_out.docx");