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

Message ListMessage List     Post MessagePost Message

  Graph Type COLUMN and BoxWhiskerLayer
Posted by Rico Sager on Aug-23-2012 19:54
Attachments:
Hi,
I have a bar chart (layer) and I have more than one column bars for one value on the x axis. I use a box whisker layer to show a target value line for a column bar. One target value belongs to exactly one column.

The problem is that the mark lines of the box whisker layer are always painted over all(!) columns of an x axis value. I only want to paint a mark line only for/over that column bar to where it belongs.

Is there a possibility how I can solve this problem without such things like "chart.addLine"?

Rico
column bar mark line example.png

  Re: Graph Type COLUMN and BoxWhiskerLayer
Posted by Peter Kwan on Aug-24-2012 02:37
Hi Rico,

You may use the Layer.alignLayer method to align the box-whisker symbol to a bar. It is like (in PHP):

$layer = $c->addBoxWhiskerLayer(null, null, null, null, $myData);
$layer->alignLayer($myBarLayer, 1);
$layer->moveFront();
$layer->setDataGap(1 - 0.75 / 2);

Hope this can help.

Regards
Peter Kwan