[reportlab-users] BarLabelFormat
Robin Becker
reportlab-users@reportlab.com
Fri, 26 Jul 2002 13:50:44 +0100
In article <D57D5E7F-A093-11D6-ADFF-00039345C610@darwin.in-berlin.de>,
Dinu Gherman <gherman@darwin.in-berlin.de> writes
>Marcus Vinicius Laranjeira:
>>
>> myBarChar.BarLabelFormat = ???????????
>
>This general sample case should do (untested):
>
>def format(num):
> return "-%03d-" % num
>
>...
>myBarChar.BarLabelFormat = format
>...
>
>Dinu
....
most formats can be strings eg '%d' used as labelFmt % datum, or
callables which are expected to convert a datum to a string.
--
Robin Becker