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 |