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

Robin Becker reportlab-users@reportlab.com
Mon, 27 Oct 2003 11:09:54 +0000


In article <4BAB4288-085A-11D8-9051-00039345C610@darwin.in-berlin.de>,
Dinu Gherman <gherman@darwin.in-berlin.de> writes
>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)
>
.....
We probably should have had the format as apart of the barLabels, so if
I add to that it'll make things horribly complicated and confusing, but
I suppose that's the way to do it.
-- 
Robin Becker