Page 1 of 1

problem with stacking of Lines and bars

Posted: Fri Jul 27, 2007 12:49 pm
by 9640591
Stacking of lines and bars are not properly displayed.

I am using the follwoing code to stack the data in the chart
thisLine.Stacked = Steema.TeeChart.Styles.CustomStack.Stack;

Posted: Mon Jul 30, 2007 8:32 am
by 9348258
Hi Usc

Here It's working fine using the last release (Build 3.2.2763.26082) and the below code:

Code: Select all

 //Bar
            bar1.MultiBar = Steema.TeeChart.Styles.MultiBars.Stacked;
            bar1.Add(4);
            bar1.Add(6);

            bar2.Add(3);
            bar2.Add(3);
            
            //Line
            line1.Stacked = Steema.TeeChart.Styles.CustomStack.Stack;
            line1.Add(3);
            line1.Add(5);
            line1.Add(2);

            line2.Add(2);
            line2.Add(2);
            line2.Add(2);
Which TeeChart version are you using? Could you please try with the last version?

Posted: Mon Jul 30, 2007 8:44 am
by 9640591
Hi Edu

Thanks for your reply. The version of Tee Chart which I am using is 2.0.2511.18118.

Regards
Usc

Posted: Mon Jul 30, 2007 9:05 am
by 9348258
Hi Usc

Also It's working fine using lastest release to v2 (Build 2.0.2652.22325 "available at the web")

Posted: Mon Jul 30, 2007 9:20 am
by 9640591
Hi Edu

I forgot to mention one important thing. I have different plot groups and each plot group contains a number of series drawn on the chart. Could there be any problem due to this while stacking the line or bar.

Regards
usc

Posted: Fri Aug 03, 2007 7:00 am
by 9640591
Hi Edu

With refernce to the image [img]Chart_Legend[/img].

You can see on the right hand side of the scree, there is a checked list box of various plot groups.On selection of a checkbox, a number of series which correspond to that plot group are made visible.

Does this have an impact when it comes to stacking of lines and bars.

Please, help me out with this.

Thanks and Regards
Usc

Posted: Fri Aug 03, 2007 8:33 am
by 9348258
Hi usc

If you set one series to not-visible and one single series remains in the chart, it doesn't consider previous series stacking, it's plotted as if only one single series existed at the chart.
To keep stacking "effect" you can make transparent the series you don't want to be visible.

Code: Select all

line1.Color = Color.Transparent;

Posted: Tue Aug 07, 2007 5:07 am
by 9640591
Hi Edu,

I have attched for your refernce an excel sheet
stacking issue.xls


In my data there are couple of rows with value as zero. I have specified the colour for the as transparent. But when I try to stack the data i am getting some discrepency.

As mentioned earlier I am plotting different series at a time and when I try to stack them, i am getting this error.

Request you to kindly look into the file and help me identify the problem.


Thanks and Regards,
Usc

Posted: Tue Aug 07, 2007 10:08 am
by narcis
Hi usc,

Thanks for the Excel attachment but it's unclear to me to which series belongs each data item and how to reproduce this using TeeChart. Would you be so kind to send us a simple example project we can run "as-is" to reproduce the problem here?

Thanks in advance.