if (xChartDoc != null) cleanup(Param, log);
log.println( "creating a chart document" );
SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)Param.getMSF());
try {
log.println( "creating a chartdocument" );
xChartDoc = SOF.createChartDoc(null);
log.println("Display MeanValue");
XPropertySet diagProps = (XPropertySet)
UnoRuntime.queryInterface(XPropertySet.class, xChartDoc.getDiagram());
diagProps.setPropertyValue("MeanValue",new Boolean(true));
} catch (com.sun.star.uno.Exception e) {