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

Message ListMessage List     Post MessagePost Message

  layer.setDataCombineMethod
Posted by Andy on Feb-28-2011 22:41
I am having difficulty in changing the combine method on my charts.

I am using the layer.setDataCombineMethod(int (either 0 or 1,3 or4)) to change the way the chart stacks data, but it only ever appears in overlay format.

Other than that, the chart works fine.

Any suggestions, much appreciated!

  Re: layer.setDataCombineMethod
Posted by Andy on Feb-28-2011 23:03
I am using the Java version by the way

  Re: layer.setDataCombineMethod
Posted by Peter Kwan on Mar-01-2011 02:01
Hi Andy,

If you are using layer.setDataCombineMethod, and it does not appear to work, some possible reasons are:

- Your code is not applying the setDataCombineMethod to the layer that contains your bars. It may be applying the setDataCombineMethod to a different layer.

- The method is apply after the bars have already been drawn (after BaseChart.layout or makeChart).

- There is another line of code that resets the data combine method to overlay.

An example of correctly using the data combind method is:

BarLayer layer = c.addBarLayer2(Chart.Stack, 8);
layer.addDataSet(data0);
layer.addDataSet(data1);
layer.addDataSet(data2);

If the above still does not solve the problem, would you mind to inform me the charting part of your code, and the chart created by the code?

Regards
Peter Kwan