Switching from Surface to Tower series casuses errors

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
VH1
Advanced
Posts: 105
Joined: Thu May 13, 2004 4:00 am
Location: UK

Switching from Surface to Tower series casuses errors

Post by VH1 » Fri Oct 21, 2005 8:56 am

2.0.2040.15118

Hi,

I have created a surface series from a datatable.

From the editor, I changed the surface series to a tower series. I get the following error:

at Steema.TeeChart.Styles.Tower.DrawCell(Int32 x, Int32 z)
at Steema.TeeChart.Styles.Tower.DrawCells()
at Steema.TeeChart.Styles.Tower.Draw()
at Steema.TeeChart.Styles.Series.DrawSeries()
at Steema.TeeChart.Chart.InternalDraw(Graphics g)
at Steema.TeeChart.TChart.Draw(Graphics g)
at Steema.TeeChart.TChart.OnPaint(PaintEventArgs pe)

Additionally, I also get this error if I try to create a Tower series with the same datatable.

Am I missing something here?

Please can you give me a an example of how I can create a Tower series froma datatable?

Thanks,

Vaughan

VH1
Advanced
Posts: 105
Joined: Thu May 13, 2004 4:00 am
Location: UK

Post by VH1 » Fri Oct 21, 2005 9:10 am

I have reverted back to the latest build of version 1 and it is still the same :(

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 Oct 21, 2005 9:59 am

Hi Vaughan,

Could you please send us this datatable or a similar example we can use to reproduce the problem here? You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.
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

VH1
Advanced
Posts: 105
Joined: Thu May 13, 2004 4:00 am
Location: UK

Post by VH1 » Fri Oct 21, 2005 10:14 am

Due to me being on a Corporate LAN sitting behind a firewall which does not allow access to newsgroups, I am unable to send you an example?

Do you have email?

Thanks,

Vaughan

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 Oct 21, 2005 1:43 pm

Hi Vaughan,

Ok, please send it directly to me.
Last edited by Narcís on Wed Oct 04, 2006 11:22 am, edited 1 time in total.
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

VH1
Advanced
Posts: 105
Joined: Thu May 13, 2004 4:00 am
Location: UK

Post by VH1 » Fri Oct 21, 2005 2:38 pm

I have sent you the email with attachments

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 Oct 24, 2005 10:42 am

Hi Vaughan,

I've been able to reproduce the problem here and we've found there's a bug that when importing series data from a text file X,Y and Z values are not supported, just X and Y values are supported. I've added this (TF02011037) to our defect list to be fixed for future releases.
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

VH1
Advanced
Posts: 105
Joined: Thu May 13, 2004 4:00 am
Location: UK

Post by VH1 » Mon Oct 24, 2005 10:58 am

Hi,

This problem did not stem from importing a text file.

I created a surface series with a System.Data.DataTable (not a text file) and then exported the data from the Editor for you to see. (the two attachments I sent you)

Following that, from the Editor, I then changed the Surface series to a Tower series.

That is when I get the error, importing from a text file is a seperate issue.

It seems that your Steema.TeeChart.Styles.Tower.DrawCell(Int32 x, Int32 z) method has a problem with some data values when I reverse the parameters I supply for the X and Z axis?

If you need any more clarification of this issue please let me know?

Thanks,

Vaughan

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 Oct 24, 2005 3:06 pm

Hi Vaughan,

Ok, could you please send us an example 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

VH1
Advanced
Posts: 105
Joined: Thu May 13, 2004 4:00 am
Location: UK

Post by VH1 » Tue Oct 25, 2005 8:37 am

Ok for simplicity, to recreate the exception just import the text file I sent to you

MSPvsRXQUL

This is also related to the following issue.

http://www.teechart.net/support/modules ... 2a0ed6346d

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 Oct 25, 2005 10:55 am

Hi Vaughan,

We've been able to find that the problem lies on when converting from a surface series with IrregularGrid=true to a Tower Series. I've added this defect (TF02011045) to our bug list to be fixed for future releases. In the meantime, a workaround is using:

Code: Select all

		private void button1_Click(object sender, System.EventArgs e)
		{
			Steema.TeeChart.Styles.Series s=tChart1[0]; 
      
			if(s is Steema.TeeChart.Styles.Custom3DGrid)
				(s as Steema.TeeChart.Styles.Custom3DGrid).IrregularGrid = false;

			Steema.TeeChart.Styles.Series.ChangeType(ref s,typeof(Steema.TeeChart.Styles.Tower));

			if(s is Steema.TeeChart.Styles.Custom3DGrid)
				(s as Steema.TeeChart.Styles.Custom3DGrid).IrregularGrid = true;			
		}
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