XEmbeddedObjectSupplier oEOS = (XEmbeddedObjectSupplier)
UnoRuntime.queryInterface(XEmbeddedObjectSupplier.class, oChart);
XInterface oInt = oEOS.getEmbeddedObject();
XChartDocument xChart = (XChartDocument) UnoRuntime.queryInterface(
XChartDocument.class,oInt);
XDiagram oDiag = (XDiagram) xChart.getDiagram();
System.out.println("Change Diagramm to 3D");
XPropertySet oCPS = (XPropertySet)UnoRuntime.queryInterface(
XPropertySet.class, oDiag );
oCPS.setPropertyValue("Dim3D", new Boolean(true));
System.out.println("Change the title");