ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Percentage doesn't include decimal
Posted by Heppy on Feb-06-2009 11:37
Attachments:
Dear ALL,
I want to view percentage (doesn?t include decimal).

for example : 34% - not 34,40%.

I?am read on chartdiretor documentation (Parameter Substitution and Formatting),

But I cann?t method to view percentage not include decimal (doesn?t include decimal).

Thanks

Rgds.

Heppy
cdir-percentage.PNG

  Re: Percentage doesn't include decimal
Posted by Peter Kwan on Feb-06-2009 12:59
Hi Heppy,

You may use (in VB/VBScript):

Call layer.setDataLabelFormat("{percent|0}%")

Hope this can help.

Regards
Peter Kwan

  Re: Percentage doesn't include decimal
Posted by Heppy on Feb-06-2009 19:21
Hi Peter,

I'am developt with PHP.

# Enable data label at the middle of the the bar
$textBoxObj = $layer->setDataLabelFormat("{percent|0}%");
$textBoxObj = $layer->setDataLabelStyle();
$textBoxObj->setAlignment(Center);

Thank's Peter :)