problem with stacking of Lines and bars

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
usc
Newbie
Newbie
Posts: 29
Joined: Thu Mar 09, 2006 12:00 am
Contact:

problem with stacking of Lines and bars

Post by usc » Fri Jul 27, 2007 12:49 pm

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;

Edu
Advanced
Posts: 206
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia

Post by Edu » Mon Jul 30, 2007 8:32 am

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?
Best Regards,
Edu

Steema Support Central
http://support.steema.com/

usc
Newbie
Newbie
Posts: 29
Joined: Thu Mar 09, 2006 12:00 am
Contact:

Post by usc » Mon Jul 30, 2007 8:44 am

Hi Edu

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

Regards
Usc

Edu
Advanced
Posts: 206
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia

Post by Edu » Mon Jul 30, 2007 9:05 am

Hi Usc

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

Steema Support Central
http://support.steema.com/

usc
Newbie
Newbie
Posts: 29
Joined: Thu Mar 09, 2006 12:00 am
Contact:

Post by usc » Mon Jul 30, 2007 9:20 am

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

usc
Newbie
Newbie
Posts: 29
Joined: Thu Mar 09, 2006 12:00 am
Contact:

Post by usc » Fri Aug 03, 2007 7:00 am

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

Edu
Advanced
Posts: 206
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia

Post by Edu » Fri Aug 03, 2007 8:33 am

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;
Best Regards,
Edu

Steema Support Central
http://support.steema.com/

usc
Newbie
Newbie
Posts: 29
Joined: Thu Mar 09, 2006 12:00 am
Contact:

Post by usc » Tue Aug 07, 2007 5:07 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Aug 07, 2007 10:08 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply