Page 1 of 1

Problems and bugs

Posted: Fri Nov 30, 2007 9:56 am
by 13046960
We have a list of problems and bugs in the TeeChart.NET v3.

We have been using TeeChart for more than 7 years.
We started with TeeChart 4 and saw bugs returning as we get new versions.

The bugs we have now we can not solve with workarounds and because it is part of our major software and is deeply integrated, we need these problems solved asap. Our next software release is February.

The problems we have are:
- Running out of memory when using 40 Colorgrid series with 400 values.
- The polar vlaues are moving to wrong positions when adding a new polar serie with marks turned on.
- The axis of the polar plot disapears when looking at their properties in the editor.
- The polar plot cannot be zoomed.
- Waterfall plot can not remove hidden lines (drawn behind other series).

Posted: Fri Nov 30, 2007 10:59 am
by narcis
Hi Janne,

Please find below the answers to your questions:
- Running out of memory when using 40 Colorgrid series with 400 values.
I'm not able to reproduce the issue here using latest TeeChart for .NET v3 maintenance release available at the client area and the code below. Which exact TeeChart version are you using? Could you please send us a simple example project we can run "as-is" to reproduce the problem here?

Code: Select all

		public Form1()
		{
			InitializeComponent();
			InitializeChart();
		}

		private void InitializeChart()
		{
			Random y = new Random();

			tChart1.AutoRepaint = false;

			for (int i = 0; i < 40; i++)
			{
				Steema.TeeChart.Styles.ColorGrid colorGrid1 = new Steema.TeeChart.Styles.ColorGrid(tChart1.Chart);

				for (int x = 0; x < 20; x++)
				{
					for (int z = 0; z < 20; z++)
					{
						colorGrid1.Add(x, y.Next(), z);
					}
				}
			}

			tChart1.AutoRepaint = true;
			tChart1.Refresh();
		}

		private DateTime startTime, now;

		private void tChart1_BeforeDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g)
		{
			startTime = DateTime.Now;
		}

		private void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g)
		{
			//calculate elapsed time         
			now = DateTime.Now;
			TimeSpan elapsedTime = new TimeSpan(now.Ticks - startTime.Ticks);
			int total = (elapsedTime.Seconds * 1000) + elapsedTime.Milliseconds;

			label1.Text = "Elapsed time: " + total.ToString() + " ms";
		}
- The polar vlaues are moving to wrong positions when adding a new polar serie with marks turned on.
I've been able to reproduce this issue here and added it (TF02012611) to our defect list to be fixed for future releases.
- The axis of the polar plot disapears when looking at their properties in the editor.
Yes, when selecting the "Axes" tab in the chart editor, the selected axis is automatically set to not visible. The solution is setting it back to visible with corresponding checkbox. Anyway, this is also a bug which (TF02012612) I've added to our defect list to be fixed for future releases.
- The polar plot cannot be zoomed.
This already on our wish-list to be considered for inclusion in future releases.
- Waterfall plot can not remove hidden lines (drawn behind other series).
Sorry but I don't understand which is the exact problem here. Would you be so kind to give us some more information or send us a simple example project we can run "as-is" to reproduce the problem here?

You can post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.

Posted: Mon Dec 03, 2007 2:24 pm
by 13046960
Hi,

- Using drag marks tool in polar is incorrrect after a rezise and not pointing to the correct point anymore
- In the waterfall we use 400 lines by 3200 points in each series. Points in the back of the waterfall are then vissible even if drawn first. This makes the waterfall very difficult to read becuase you can end up with just a totally colored graph and no point information. This can only be solved it serieses in the front are drawn oven the ones in the back. The area plot has this functionality, but with the amount of points mentioned, it is way too slow and not useable.
I have uploaded an example for you of a good useable waterfall that we coded in 1989...
- When changing the direction of the labels in polar, then a point at 30 degrees will then be presented at 330 degrees actually. How are we suppose to use this function (data is presented complete wrong)?

Thanks for the help.[/img]

Posted: Mon Dec 03, 2007 3:20 pm
by narcis
Hi Janne,
- Using drag marks tool in polar is incorrrect after a rezise and not pointing to the correct point anymore
Yes, this is because when dragging the marks their position is set to a custom value not relative to any chart element. To prevent this you should set the marks position to a relative position to series points, axes, title, ... You'll find an example here.
- In the waterfall we use 400 lines by 3200 points in each series. Points in the back of the waterfall are then vissible even if drawn first. This makes the waterfall very difficult to read becuase you can end up with just a totally colored graph and no point information. This can only be solved it serieses in the front are drawn oven the ones in the back. The area plot has this functionality, but with the amount of points mentioned, it is way too slow and not useable.
I have uploaded an example for you of a good useable waterfall that we coded in 1989...
Would you be so kind to send us a simple example project we can run "as-is" to reproduce the problem here?
- When changing the direction of the labels in polar, then a point at 30 degrees will then be presented at 330 degrees actually. How are we suppose to use this function (data is presented complete wrong)?


Data is represented the same. This should only be used if you want the labels of the series displayed in clockwise direction.

Other problems

Posted: Wed Dec 05, 2007 9:04 am
by 13046960
Thanks for your reply, we will do the approach in a different way.

We have another reallly important problem we discovered after upgrade to version 3.2.2868.26903. When exporting the data to bitmap (or any picture format we get a "NullReferenceException was unhandled".
If we use the command ".Export.Image.JPEG.CopyToClipboard" we get a blue screen. This needs to be fixed NOW.
Please help!

Posted: Wed Dec 05, 2007 9:08 am
by narcis
Hi Janne,

Yes, this is a known issue which has already been fixed for the next maintenance release which we expect to be out before the end of this week.

Thanks for the support

Posted: Thu Dec 06, 2007 1:05 pm
by 13046960
I have one more question:

When using ColorGrid serie I cannot use the irregular grid.
The screen is then empty.
When I switch of the irregular grid it is shown.

In the example below I have added values with even x and y values but in my application I need uneven values.
How can I get this?

-----------------------------------------------------------------------------------
Dim oSerie As New Steema.TeeChart.Styles.ColorGrid(TChart1.Chart)
oSerie.UsePalette = true
oSerie.PaletteStyle = Steema.TeeChart.Styles.PaletteStyles.Pale
oSerie.IrregularGrid = True
For i As Integer = 1 To 20
For j As Integer = 1 To 20
oSerie.Add(i, Rnd(), j, DateAdd(DateInterval.Minute, i, Date.Now).ToString)
Next
Next
-----------------------------------------------------------------------------------
Thanks in advance!

Posted: Fri Dec 07, 2007 8:59 am
by narcis
Hi Janne,

Using the new maintenance release posted last Wednesday, your code works fine here either using setting IrregularGrid to False or True. To draw uneven ColorGrid you can do something like this:

Code: Select all

		Dim oSerie As New Steema.TeeChart.Styles.ColorGrid(TChart1.Chart)
		oSerie.UsePalette = True
		oSerie.PaletteStyle = Steema.TeeChart.Styles.PaletteStyles.Pale
		oSerie.IrregularGrid = True
		For i As Integer = 1 To 20
			For j As Integer = 1 To 20
				If j Mod 2 = 0 Then
					oSerie.Add(i, Rnd(), j, DateAdd(DateInterval.Minute, i, Date.Now).ToString)
				Else
					oSerie.Add(i, Rnd(), j + 0.5, DateAdd(DateInterval.Minute, i, Date.Now).ToString)
				End If
			Next
		Next
You may also be interested in reading how this kind of series work in this thread.

Still not working

Posted: Fri Dec 07, 2007 9:49 am
by 13046960
When I run the code you sent me it is showing a irregular grid, but the color information is not shown.
Every cell is still white.
My version is 3.2.2894.29191 which I think is the latest.

Posted: Fri Dec 07, 2007 10:25 am
by narcis
Hi Janne,

It works fine for me. Could you please send us a simple example project we can run "as-is" to reproduce the problem here?

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.

Posted: Fri Dec 07, 2007 1:57 pm
by 13046960
I have uploaded a sample to you. Please check this and let us know your findings as soon as possible. Thanks!

Posted: Fri Dec 07, 2007 3:28 pm
by narcis
Hi Janne,

Thanks for the example project. I've been able to reproduce the issue here. The difference between your example and mine was that I was using 3D view instead of 2D. This is a bug which I've added to our defect list (TF02012628) to be fixed for future releases.

In the meantime, a workaround is setting the chart to 3D view and Chart3dPercent to zero:

Code: Select all

  Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    TChart1.Series.Clear()
    Dim oSerie As New Steema.TeeChart.Styles.ColorGrid(TChart1.Chart)
    oSerie.UsePalette = True
    oSerie.PaletteStyle = Steema.TeeChart.Styles.PaletteStyles.Pale
    oSerie.IrregularGrid = True
    For i As Integer = 1 To 20
      For j As Integer = 1 To 20
        If j Mod 2 = 0 Then
          oSerie.Add(i, Rnd(), j, DateAdd(DateInterval.Minute, i, Date.Now).ToString)
        Else
          oSerie.Add(i, Rnd(), j + 0.5, DateAdd(DateInterval.Minute, i, Date.Now).ToString)
        End If
      Next
    Next

        'Workaround
        TChart1.Aspect.View3D = True
        TChart1.Aspect.Chart3DPercent = 0
    End Sub