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

Message ListMessage List     Post MessagePost Message

  Unable to print numbers in title of pie chart
Posted by Arun on Feb-11-2013 22:53
I am unable to print numeric variable in the pie chart as it takes only text. is there any
method to print even the value of the numeric variable in title?
Required output : Total Bytes:92450
code used:
$c->addTitle("total Bytes :'$byte' ");

  Re: Unable to print numbers in title of pie chart
Posted by Peter Kwan on Feb-12-2013 00:27
Hi Arun,

Yes. Of course you can put any text you like in the chart title, including value in a numeric variable. This is a feature of PHP and is not related to ChartDirector. For example, if you want something like Total Bytes:92450 as the chart title, the code is:

$c->addTitle("Total Bytes:$byte");

PHP will convert "Total Bytes:$byte" into "Total Bytes:92450" before passing the text string to ChartDirector. Note that the conversion is a feature of PHP, and is not related to ChartDirector.

Hope this can help.

Regards
Peter Kwan