[reportlab-users] How to add a title to a chart?

Marc Stober reportlab-users@reportlab.com
Wed, 10 Sep 2003 14:39:23 -0400


Hi Sarcastic Horse,

It sounds like you are looking for a way to put a centered String on
drawing. You can just use the textAnchor property to make it centered, as
such:

	String(10, 20, 'xyz', textAnchor = 'middle')

Platypus is worth learning for if you need arrange multiple charts and text
on a page and build multi-page documents with cover pages, etc.

- Marc

 
> Message: 13
> Date: Wed, 10 Sep 2003 14:13:28 -0400 (EDT)
> From: reportlab@sarcastic-horse.com
> To: reportlab-users@reportlab.com
> Subject: [reportlab-users] How to add a title to a chart?
> Reply-To: reportlab-users@reportlab.com
> 
> Hi-
> 
> I want to add a title to a chart.  I can think of two ways to do it:
> 
> 1. Use create a string object and use the x and y attributes 
> to move it
> around it until I get it centered.
> 
> 2.  Learn how platypus works and embed the chart image inside 
> the page.
> 
> How are the rest of you adding titles to charts?