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

Message ListMessage List     Post MessagePost Message

  BarLayer with setLinearScale overlapping axis
Posted by Compufreak on Jun-05-2013 21:36
Attachments:
Hi,

I've got a problem with a (or 2) barlayer. I add a barlayer with the following settings :
BarLayer layer = chart.addBarLayer2(Chart.Stack, 0);
BarLayer labelLayer =  = chart.addBarLayer2(Chart.Stack, 0);
labelLayer.setDataLabelStyle();
// after adding some datasets :

chart.yAxis().setLinearScale(80, 100);
layer.setDataCombineMethod(ChartDirector.Chart.Percentage);
labelLayer.setDataCombineMethod(ChartDirector.Chart.Percentage);

The problem is, that if I don't have all stacks between 80 and 100 percent the chart looks like the first 2 bars in the attached chart (don't mind the line).

What can I do?

Thanks & best regards,

Christoph
overlapprob.PNG

  Re: BarLayer with setLinearScale overlapping axis
Posted by Peter Kwan on Jun-05-2013 22:52
Hi Compufreak,

You may use XYChart.setClipping to clip the layers to the plot area:

chart.setClipping();

Hope this can help.

Regards
Peter Kwan

  Re: BarLayer with setLinearScale overlapping axis
Posted by Compufreak on Jun-07-2013 22:34
It worked - thank you!