[reportlab-users] How to add a title to a chart?
reportlab-users@reportlab.com
reportlab-users@reportlab.com
Wed, 10 Sep 2003 14:55:23 -0400 (EDT)
Great -
I think use the textAnchor = 'middle' for now, but I will be later fitting
multiple charts on a page. I can't find a 'hello world' example for
platypus. The one mentioned in the user guide was not part of the .zip
file I downloaded. Anway, is there a simple one out there somebody can
post?
Thanks for the help.
>
> 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?
> _______________________________________________
> reportlab-users mailing list
> reportlab-users@reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users
>