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

Message ListMessage List     Post MessagePost Message

  setDataSymbol2() error
Posted by M_JAy on Jan-19-2011 17:54
I have wrote a program to display bubble chart and I used a custom symbol for points of the graph (smile symbol).


(My symbol path = G:\\xampp\\htdocs\\MYGRAPHS\\smile.jpg)


this is my code :
$scatterLayerObj = $c->addScatterLayer($dataX0, $dataY0, "Users");
$scatterLayerObj->setDataSymbol2(dirname(__FILE__)."/smile.jpg");
$scatterLayerObj->setSymbolScale($dataZ0);



but I got an error message.

Fatal error: Call to a member function setDataSymbol2() on a non-object in G:\\xampp\\htdocs\\MYGRAPHS\\KpiComparison.php on line 38

  Re: setDataSymbol2() error
Posted by Peter Kwan on Jan-19-2011 17:56
Hi M_JAy,

The code should be (in PHP 5):

$scatterLayerObj->getDataSet(0)->setDataSymbol2(dirname(__FILE__)."/smile.jpg");

or (in PHP 4/5):

$ds = $scatterLayerObj->getDataSet(0);
$ds->setDataSymbol2(dirname(__FILE__)."/smile.jpg");

Hope this can help.

Regards
Peter Kwan