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 |