Volume and line series stacking

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Adrian
Advanced
Posts: 116
Joined: Thu Jun 23, 2005 4:00 am

Volume and line series stacking

Post by Adrian » Sun Sep 25, 2005 11:09 pm

Hi there,
I have a chart that will have a volume series and two line series. I want the two line series stacked but I don't want the volume series included in the stack. When I stack the line series it appears that the volume series is also stacked. On the TeeEditor there is not Stack group facilities for line and no stacking control at all for volume.

Is this a problem or am I simply not supposed to be able to do this?

Using TeeChart dot net build 2.0.2040.15119

Cheers..

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

Post by Narcís » Mon Sep 26, 2005 10:01 am

Hi Adrian,

It seems to work fine here using the code below, could you please test if that approach works for you?

Code: Select all

		private void Form1_Load(object sender, System.EventArgs e)
		{
			for (int i=0;i<tChart1.Series.Count;++i) tChart1[i].FillSampleValues();

			line1.Stacked = Steema.TeeChart.Styles.CustomStack.Stack;
		}
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

Adrian
Advanced
Posts: 116
Joined: Thu Jun 23, 2005 4:00 am

Post by Adrian » Fri Nov 17, 2006 1:29 am

Sorry to revisit this one again but I'm still having problems. I have the following chart which consists of two lines SYSA and SYSB and a volume for SYSBVOLUME which is the same data as SYSB. I want to stack the two line series but have the volume series stay where it is. I NEED to be able to do this through the chart editor. Line series have some stack control but no STACK GROUP. Volume series have no stack control in the chart editor

Image

If I change a line series to stack it does correctly stack the line series but also seems to stack the volume series, as there is no stack group or stack control for the volume series in the chart editor I cannot stop this happening.

Image

This seems to only be a problem if all three series are added to the chart and then the stacking changed. If I add the two lines, stack them then add the volume series it works correctly.

Image

As it doesn't make much sense to have stacked volume series they shouldn't be affected by the change of the stack status of the lines, can this be corrected please.

Ta..
Adrian Heald
Captell Developments
www.captelldevelopments.com

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

Post by Narcís » Fri Nov 17, 2006 9:15 am

Hi Adrian,

To achieve this you can try to set a different ZOrder for the two lines and the volume series as you can read on this topic.
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