setDepth(), setZOrder() method
Posted: Wed Mar 25, 2009 11:22 pm
Basically, I want to set ZOrder/depth of series in a non-3D chart to deal with overlapping cases. I tried a very simple code which is similar to the example of DepthDemo.java in TeeChart.Features.jar as following.
However, no matter what order I tried in setDepth("order") method, it plots as the original order of being added to the chart (series1, series2, series3 in this case), never changed by setDepth() method. And same case for setZOrder(). Did I miss something here?
Thanks,
Code: Select all
com.steema.teechart.styles.Line series1 = new Line(teeChart.getChart());
series1.fillSampleValues(10);
com.steema.teechart.styles.Bar series2 = new Bar(teeChart.getChart());
series2.fillSampleValues(6);
com.steema.teechart.styles.Line series3 = new Line(teeChart.getChart());
series3.fillSampleValues(10);
series1.setDepth(0);
series2.setDepth(2);
series3.setDepth(1);
Thanks,