[reportlab-users] Charts and Axes dimensions

Troy Caldwell troy.caldwell at covchurch.org
Sun Sep 27 16:56:54 EDT 2009

I've been working with various charts and everything works pretty good, but
when it comes to getting all chart data to fall within the bounds of the
drawing, I'm running into some confusion.
Here's and example of what I'll be doing:

1. Create a drawing of say dimensions 300 x 200.
2. Create a vertical bar chart with dimensions of 225 x 140.
3. Add the chart to the drawing.

I realize that if I place the chart at 0,0, my labels for both axes will be
outside the bounds of the drawing. They appear, but they appear where I
don't want them. I'm trying to figure out a way to calculate the width of
the y axis, and the height of the x axis so I can then make the decision on
where to place the chart itself to keep the entire image where I want it.
I'm dropping these into a document that's using frames and flowables.
Everything is running pretty smoothly.

Even thought the charts are not doing exactly what I want because I don't
have this part figured out yet, it's not too bad to eyeball it and make some
quick adjustments. I've been searching for a couple of days on this now and
I figured it's time to ask for help.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20090927/6161f721/attachment.html>

More information about the reportlab-users mailing list