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

Message ListMessage List     Post MessagePost Message

  bubble chart problems
Posted by m_jay on Jan-24-2011 11:36
1)
I have created scatter chart using customsymbol(smileface.png)for points of the graph.
how to set the size of  a custom symbol of a bubble chart?


2)
I want to add 9 images as labels for my bubble chart how can I do it?

  Re: bubble chart problems
Posted by Peter Kwan on Jan-25-2011 04:16
Hi m_jay,

You may use the standard method (Layer.setSymbolScale) to set the size of a symbol in a bubble chart. The symbol can be a built-in symbol or a custom symbol. It does not matter.

For example:

$scatterLayerObj = $c->addScatterLayer($dataX0, $dataY0);
$dataSetObj = $scatterLayerObj->getDataSet(0);
$dataSetObj->setDataSymbol2(dirname(__FILE__)."/".$symbols[$i]);
$scatterLayerObj->setSymbolScale($dataZ0);

You may use Layer.setDataLabelFormat to add labels to the bubbles. By using CDML, the labels can contain images. For example:

$myLabel = array("<*img=/aaa/bbb/123.png*>", "<*img=/aaa/bbb/444.png*>", .....);
scatterLayerObj->addExtraField($myLabel);
scatterLayerObj->setDataLabelFormat("{field0}");

Hope this can help.

Regards
Peter Kwan