By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,548 Members | 1,486 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,548 IT Pros & Developers. It's quick & easy.

Any reportlab user here??

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.