470,591 Members | 1,458 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,591 developers. It's quick & easy.

Any reportlab user here??

Hi
I am drawing a vertical barchart for project vs start date
The vertical bars are for projects.
Now, at the top of each bar I also want to display the number of
projects.
Also I want to show the color convention i.e
Say I have different bars for H.R projects,etc...
Now,if HR project bars are of blue colors then at the side of graph I
want to show a small rectangle of blue color with "H.R project" beside
it.
How should I do this?
Regards,
Ketul
Jul 18 '05 #1
1 1850
Ketul,

You use .barLabels.fontSize, .barLabels.fontName,
..barLabels.Nudge, and .barLabelFormat to control
what prints at the top of each bar.

You use the legend object to create a legend for
a barchart that shows a "swatch" of the color/pattern
for the bar along with a description for that series.

You should probably print out and review all the
examples that come with ReportLab/Graphics. I know
they helped me a lot.

Larry Bates
Syscon, Inc.
<ke***********@yahoo.com> wrote in message
news:f0**************************@posting.google.c om...
Hi
I am drawing a vertical barchart for project vs start date
The vertical bars are for projects.
Now, at the top of each bar I also want to display the number of
projects.
Also I want to show the color convention i.e
Say I have different bars for H.R projects,etc...
Now,if HR project bars are of blue colors then at the side of graph I
want to show a small rectangle of blue color with "H.R project" beside
it.
How should I do this?
Regards,
Ketul

Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by John Precedo | last post: by
3 posts views Thread by Andreas Jung | last post: by
reply views Thread by Robin Becker | last post: by
4 posts views Thread by Active8 | last post: by
2 posts views Thread by Rajarshi Guha | last post: by
3 posts views Thread by maeckle | last post: by
2 posts views Thread by Chuck | last post: by
16 posts views Thread by Laszlo Nagy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.