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

Message ListMessage List     Post MessagePost Message

  Bars with Marks
Posted by Gerrit on Oct-26-2011 23:46
Attachments:
Hi Peter,

I have a bar layer with two data sets. For every bar I need a mark line. I use the box-whisker layer to add the mark lines. For every x axis value are two bars and two mark lines. My problem is that the mark lines cross the two bars but they should cross only the bar to that they belong.

Regards
Gerrit
barswithmarks.png

  Re: Bars with Marks
Posted by Peter Kwan on Oct-28-2011 00:29
Hi Gerrit,

You may use Layer.alignLayer.

I suggest something like (in Java/C#):

//align myBoxWhiskerLayer0 with data set 0 in myBarLayer
myBoxWhiskerLayer0.alignLayer(myBarLayer, 0);
myBoxWhiskerLayer0.setDataWidth(c.getPlotArea().getWidth() * 0.4 / noOfBars);

//align myBoxWhiskerLayer1 with data set 1 in myBarLayer
myBoxWhiskerLayer1.alignLayer(myBarLayer, 1);
myBoxWhiskerLayer1.setDataWidth(c.getPlotArea().getWidth() * 0.4 / noOfBars);

Hope this can help.

Regards
Peter Kwan