Access existing graph

Hi, I would like to access existing graph in word document and change some values in it. Is there any way to do this?

@afasianok Sure this feature is availabe starting from 23.5 version of Aspose.Words. Please see release notes for more information:
https://docs.aspose.com/words/java/aspose-words-for-java-23-5-release-notes/#implemented-ability-to-get-and-modify-chart-series-data

is there any way to find type of existing chart? PIE, COLUMN, …

@afasianok Chart can have series of different types (composite chart), so the proper way is to get each series type. Please see the following code:

Document doc = new Document("C:\\Temp\\in.docx");
// Get chart shape
Shape chartShape = (Shape)doc.getChild(NodeType.SHAPE, 0, true);
// Get chart
Chart chart = chartShape.getChart();
// Check type of the series in the chart.
for (ChartSeries s : chart.getSeries())
    System.out.println(ChartSeriesType.getName(s.getSeriesType()));