[owtchart-users] bar labels format

Julien-Samuel Lacroix jlacroix@dmsolutions.ca
Mon, 26 Apr 2004 11:58:00 -0400


Hi,

Yes the format of the bar labels is controlled by the barlabelfmt 
parameter. The correct value of it is the same format that you will use 
in a C printf() statement. So in your case you will have "%.1f" to have 
only one decimal after the number. I would suggest however to add a 
space before the number (" %.1f") to make it more readable.

Also, in a web environment, you may need to url encode the "%" and the 
space. So it will becomes "%25" and "+". It will give you something like 
that:
http://127.0.0.1/cgi-bin/owtchart?type=3dbar&vals=1.213213!2.2!3.324!4.43326534.!5.54353!6.9999&numpts=6&extcolors=0000FF!008080!FF9900!008000!800080!FFFF00&w=400&h=400&barlabels=1&barlabelfmt=+%.1f

Best regards,
Julien

Flavio Castro wrote:
> Hello,
> 
> I use the 3DBar parameter "BarLabels=1" in order to label the bar's exact 
> value. OWTChart rounds this value but I need to display it with one decimal. 
> Should I use the "BarLabelFmt" parameter? If yes, wat format value can be 
> passed?
> 
> Thanks,
> Flavio
> 
>  TYDAC NEWS http://www.tydac.ch/english/index.php?menu=News_actual
>  -----------------------------------------------------------------
>  ############      Mit freundlichen Gruessen / Kind Regards
>  ############    Flavio Castro - mailto:flavio.castro@tydac.ch
>  ############         TYDAC AG - http://www.tydac.ch
>  ####    ####        Geographic Information Solutions
>  ####    ####         Luternauweg 12 -- CH-3006 Bern
>  ############   Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860
>  ----------------------------------------------------------------- 
> 
> 
> 

-- 
------------------------------------------------------------
Julien-Samuel Lacroix            jlacroix@dmsolutions.ca
DM Solutions Group               http://www.dmsolutions.ca/
------------------------------------------------------------