Page 1 of 1

Switching from Surface to Tower series casuses errors

Posted: Fri Oct 21, 2005 8:56 am
by 8125470
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

Posted: Fri Oct 21, 2005 9:10 am
by 8125470
I have reverted back to the latest build of version 1 and it is still the same :(

Posted: Fri Oct 21, 2005 9:59 am
by narcis
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.

Posted: Fri Oct 21, 2005 10:14 am
by 8125470
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

Posted: Fri Oct 21, 2005 1:43 pm
by narcis
Hi Vaughan,

Ok, please send it directly to me.

Posted: Fri Oct 21, 2005 2:38 pm
by 8125470
I have sent you the email with attachments

Posted: Mon Oct 24, 2005 10:42 am
by narcis
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.

Posted: Mon Oct 24, 2005 10:58 am
by 8125470
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

Posted: Mon Oct 24, 2005 3:06 pm
by narcis
Hi Vaughan,

Ok, could you please send us an example we can run "as-is" to reproduce the problem here?

Thanks in advance.

Posted: Tue Oct 25, 2005 8:37 am
by 8125470
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

Posted: Tue Oct 25, 2005 10:55 am
by narcis
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;			
		}