def OpenDocumentChart():
 doc = OpenDocument('application/vnd.oasis.opendocument.chart')
 doc.chart = Chart()
 doc.body.addElement(doc.chart)
 return doc

def OpenDocumentChart ( ) : doc = OpenDocument ( 'application/vnd.oasis.opendocument.chart' ) doc . chart = Chart ( ) doc . body . addElement ( doc . chart ) return doc
creates a chart document .