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

Message ListMessage List     Post MessagePost Message

  Issue with setTitle
Posted by josheph j on May-24-2016 15:21
I was using in my application old php chartdirector, where $this->y_title = $title; was used to assign the title to axis, but for the new version I am not able to see the title on the axis, please let me know if need to do update the code, if yes, what should I update.

  Re: Issue with setTitle
Posted by Peter Kwan on May-24-2016 16:28
Hi Josheph,

The "$this->y_title = $title;" by itself cannot be used to set the axis title in any version of ChartDirector. Would you mind to clarify what is the "$this" object in the code? Is it your own object, or is it a ChartDirector object?

In ChartDirector, the code for setting the y-axis title is:

$c->yAxis->setTitle("AAA");

If you are calling setTitle with a variable such as $this->y_title, please modify the code to use "AAA ". $this->y_title . " BBB". In this way, if you see the "AAA" and "BBB" but no title, then please check if $this->y_title is empty.

If the above still does not solve the problem, is it possible to inform me of your charting code, and also the resulting chart image? If you cannot post that in a public forum, you can email me at pkwan@advsofteng.net

Regards
Peter Kwan