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

Message ListMessage List     Post MessagePost Message

  multi-stacked bar with scatter on top
Posted by at on Feb-23-2016 14:04
Attachments:
Hi Peter, how can I achieve the attached chart? How is Chartdirector computing the x-axis values of the bars in the multi-stacked so that I can add it as x-axis of the scatter layer?
multistackedbar_scatter.png
multistackedbar_scatter.png

49.54 Kb

  Re: multi-stacked bar with scatter on top
Posted by Peter Kwan on Feb-24-2016 00:49
Hi at,

You can use Layer.alignLayer to align the scatter layer with a particular bar. For example:

$scatterLayer = $c->addScatterLayer(null, $myPointData, ....);

$barLayer = $c->addBarLayer2(............);
....... add data sets to barlayer as usual ..........

#align with the first bar in a bar group
$scatterLayer->alignLayer($barLayer, 0);

#use 1, or 2 as the last parameter to alignLayer to align to the second or third bar

Hope this can help.

Regards
Peter Kwan

  Re: multi-stacked bar with scatter on top
Posted by at on Feb-24-2016 09:50
Thanks Peter, it worked as expected.