[reportlab-users] "barLabelFormat" attr. per data series?

Dinu Gherman reportlab-users@reportlab.com
Mon, 27 Oct 2003 09:48:11 +0100


Hi,

I think this is a bug of the "missing feature" category and a quick
confirmation would be all I need for now. What I'm trying to do is
make stacked bar charts with only one bar label at the "top" bar
element. So I hoped it would be possible to assign different bar
label formats to different data series like in the sample below,
but it seems like the "barLabelFormat" attribute is shared across
all data series, unlike the "fillColor" one, say...

     bc = HorizontalBarChart()
     bc.barLabelFormat[0] = '-%d-'
     bc.barLabelFormat[1] = '(%d)'
     bc.categoryAxis.style = 'stacked'

Here's a sample, so you know what I'm talking about. Actually, it's
a site monitoring ticker machine desktop widget thing "that goes BING"
whenever someone clicks certain pages :-)

   http://python.net/~gherman/tmp/SiteMon0.jpg

Dinu

--
Dinu C. Gherman - http://python.net/~gherman
......................................................................
"The best way to predict the future is to invent it." (Alan Kay)