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

Message ListMessage List     Post MessagePost Message

  setColorScale not found
Posted by John Broussard on Jun-17-2015 01:51
When I create a contour chart

$layer = $cRisk->addContourLayer($dataX, $dataY, $dataZ);

and attempt to redefine the color scale

$layer->colorAxis()->setColorScale($colorsStop);

I get the error message

Fatal error: Call to undefined method ColorAxis::setColorScale()

Any ideas

  Re: setColorScale not found
Posted by Peter Kwan on Jun-17-2015 20:32
Hi John,

The ColorAxis.setColorScale is a new API introduced in ChartDirector 6.0. Are you using
ChartDirector 6.0? If you have upgraded from an older version of ChartDirector, have you
upgraded the "phpchartdir.php"?

Note that you have to update the phpchartdir???.dll and chartdir.dll (or libchartdir.so), and
also the "phpchartdir.php". Whereas the DLLs or shared object is usually in the PHP
extension directory, it is common for people to copy "phpchartdir.php" to their own
directories (such as the same directory as the other PHP scripts). If the "phpchartdir.php" is
not upgrade, it would not have the new APIs.

Regards
Peter Kwan

  Re: setColorScale not found
Posted by John Broussard on Jun-24-2015 21:17
Thanks that fixed the problem