[reportlab-users] RE: reportlab-users digest, Vol 1 #293 - 2 msgs
Marc Stober
reportlab-users@reportlab.com
Mon, 21 Apr 2003 10:51:48 -0400
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C30815.89704E80
Content-Type: text/plain
Hi Daniel:
Two suggestions for you:
1. I have made a *pie* chart class, based on the standard ReportLab pie
chart class but with some added wrapping of the labels. If you are
interested I will send you a copy.
2. For a bar chart you might be able to leave off the category labels, and
position a one-row table below it with the appropriate labels. If you have a
problem with the labels running onto the next page, put both in a
KeepTogether object.
I have a little experience with ReportLab but there are people far more
expert on this list so there may be a better answer.
- Marc
mstober@dalbar.com
> Message: 2
> Date: Thu, 17 Apr 2003 11:36:20 -0700
> From: Daniel McQuillen <daniel@bluepattern.com>
> Organization: Blue Pattern
> To: reportlab-users@reportlab.com
> Subject: [reportlab-users] Bar graph label flowable?
> Reply-To: reportlab-users@reportlab.com
>
> Warning: ReportLab newbie. Potentially dumb question:
>
> I'm creating a large batch of bar graphs from excel data. The textual
> data populating the y-axis labels varies in length from a
> couple words
> to 20-25. So, I'd like to have a multiline label that is flowable and
> breaks the lines automatically rather than go through each text entry
> and manually enter a "\n" where appropriate.
>
> Am I missing a way of creating a flowable label? Or is there
> some simple
> algorithm I should write to mimick the auto-breaks? Not that
> good of a
> programmer so this isn't obvious to me.
>
> Thanks in advance for any help .
>
> From sunny cali,
>
> Daniel
>
> ( I've checked the archive and can't find this addressed, so
> either this
> is embarrasingly obvious or nobody has had reason to ask.)
>
>
------_=_NextPart_001_01C30815.89704E80
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: reportlab-users digest, Vol 1 #293 - 2 msgs</TITLE>
</HEAD>
<BODY>
<BR>
<P><FONT SIZE=3D2>Hi Daniel:</FONT>
</P>
<P><FONT SIZE=3D2>Two suggestions for you:</FONT>
</P>
<P><FONT SIZE=3D2>1. I have made a *pie* chart class, based on the =
standard ReportLab pie chart class but with some added wrapping of the =
labels. If you are interested I will send you a copy.</FONT></P>
<P><FONT SIZE=3D2>2. For a bar chart you might be able to leave off the =
category labels, and position a one-row table below it with the =
appropriate labels. If you have a problem with the labels running onto =
the next page, put both in a KeepTogether object.</FONT></P>
<P><FONT SIZE=3D2>I have a little experience with ReportLab but there =
are people far more expert on this list so there may be a better =
answer.</FONT></P>
<P><FONT SIZE=3D2>- Marc</FONT>
<BR><FONT SIZE=3D2>mstober@dalbar.com</FONT>
</P>
<P><FONT SIZE=3D2>> Message: 2</FONT>
<BR><FONT SIZE=3D2>> Date: Thu, 17 Apr 2003 11:36:20 -0700</FONT>
<BR><FONT SIZE=3D2>> From: Daniel McQuillen =
<daniel@bluepattern.com></FONT>
<BR><FONT SIZE=3D2>> Organization: Blue Pattern</FONT>
<BR><FONT SIZE=3D2>> To: reportlab-users@reportlab.com</FONT>
<BR><FONT SIZE=3D2>> Subject: [reportlab-users] Bar graph label =
flowable?</FONT>
<BR><FONT SIZE=3D2>> Reply-To: reportlab-users@reportlab.com</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> Warning: ReportLab newbie. Potentially dumb =
question:</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> I'm creating a large batch of bar graphs from =
excel data. The textual </FONT>
<BR><FONT SIZE=3D2>> data populating the y-axis labels varies in =
length from a </FONT>
<BR><FONT SIZE=3D2>> couple words </FONT>
<BR><FONT SIZE=3D2>> to 20-25. So, I'd like to have a multiline =
label that is flowable and </FONT>
<BR><FONT SIZE=3D2>> breaks the lines automatically rather than go =
through each text entry </FONT>
<BR><FONT SIZE=3D2>> and manually enter a "\n" where =
appropriate.</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> Am I missing a way of creating a flowable =
label? Or is there </FONT>
<BR><FONT SIZE=3D2>> some simple </FONT>
<BR><FONT SIZE=3D2>> algorithm I should write to mimick the =
auto-breaks? Not that </FONT>
<BR><FONT SIZE=3D2>> good of a </FONT>
<BR><FONT SIZE=3D2>> programmer so this isn't obvious to me.</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> Thanks in advance for any help .</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> From sunny cali,</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> Daniel</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> ( I've checked the archive and can't find this =
addressed, so </FONT>
<BR><FONT SIZE=3D2>> either this </FONT>
<BR><FONT SIZE=3D2>> is embarrasingly obvious or nobody has had =
reason to ask.)</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> </FONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01C30815.89704E80--