// Change some of the diagramm properties
oChart = (XTableChart) UnoRuntime.queryInterface(
XTableChart.class, ((XNameAccess) UnoRuntime.queryInterface(
XNameAccess.class, oCharts)).getByName("Example"));
XEmbeddedObjectSupplier oEOS = (XEmbeddedObjectSupplier) UnoRuntime.queryInterface(
XEmbeddedObjectSupplier.class, oChart);
Object 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));