#Autogenerated by ReportLab guiedit do not edit
from rlextra.graphics.quickchart import QuickChart
from reportlab.graphics.shapes import Drawing, _DrawingEditorMixin
from reportlab.lib.colors import Color

class LogChartDrawing(_DrawingEditorMixin,Drawing):
	def __init__(self,width=800,height=200,*args,**kw):
		apply(Drawing.__init__,(self,width,height)+args,kw)
		self._add(self,QuickChart(),name='chart',validate=None,desc=None)
		self.height      = self.chart.height
		self.width       = self.chart.width = 800
		self.chart.chartType='area'
		self.chart.seriesRelation      = 'stacked'
		self.chart.categoryNames       = ['Sep 2006', 'Oct 2006', 'Nov 2006', 'Dec 2006']
		self.chart.seriesNames         = ['Enjoy', 'Hidden Croatia']
		self.chart.plotColor           = None
		self.chart.xTitleText          = 'Date'
		self.chart.yTitleText          = 'Brochures per day'
		self.chart.data                = [[100, 150, 140, 160], [110, 130, 150, 180]]

if __name__=="__main__": #NORUNTESTS
	LogChartDrawing().save(formats=['pdf'],outDir='.',fnRoot=None)
