"A Stacked Area Chart" #Autogenerated by ReportLab guiedit do not edit from rlextra.graphics.quickchart import QuickChart from reportlab.lib.corp import black from reportlab.graphics.shapes import Drawing, _DrawingEditorMixin class Drawing_000(_DrawingEditorMixin,Drawing): """ Stacked Area - with 2 series """ def __init__(self,width=400,height=200,*args,**kw): Drawing.__init__(self,width,height,*args,**kw) self._add(self,QuickChart(),name='chart',validate=None,desc=None) self.chart.chartType = 'stacked_area' self.chart.height = 200 self.chart.legendFontColor = black self.chart.legendFontSize = 9 self.chart.textData = "a,b" self.chart.dataLabelsFontSize = 10 self.chart.seriesNames = 'A','B' self.chart.legendText = None self.chart.titleText = 'Stacked Area Chart' self.chart.xTitleText = 'Year' self.chart.yTitleText = 'Sales (thousands)' self.width = 400 if __name__=="__main__": #NORUNTESTS Drawing_000().save(formats=['pdf'],outDir='.',fnRoot=None)