[reportlab-users] Computing chart size

Vladimir Prus reportlab-users@reportlab.com
Mon, 4 Oct 2004 17:32:34 +0400

I'm trying to use reportlab to generate very basic charts, and run into a 
trouble. The code suggested in the docs is:

   drawing = Drawing(....., ........)

   lc = HorizontalLineChart()


I'm required to provide the size of the Drawing object. However, I don't know 
how to compute the right size. I want the drawing object to be just as large 
as the chart is and the size of the chart depends on the number of data 

Is it possible to get some "bounding box" of the chart, which can be then used 
as size of the Drawing object?

Thanks in advance,