Get type of existing chart

Hi, I would like to get type of existing chart/graph in Word document(Pie, Column,etc.). Is there any possible solution?

@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()));