"A Percentage 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): ''' Percentage 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='percent_area' self.chart.height = 200 self.chart.data = [[100, 120, 140, 160], [120, 130, 90, 80]] self.chart.legendFontColor = black self.chart.legendFontSize = 10 self.chart.legendText = None self.chart.seriesNames = 'Alpha','Beta' self.chart.titleText = 'Percent Area Chart' self.chart.yTitleText = 'Market Share' self.chart.y = 1 self.chart.xTitleText = 'Year' if __name__=="__main__": #NORUNTESTS Drawing_000().save(formats=['pdf'],outDir='.',fnRoot=None)