Problem with Polar Data Series

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
PaulcH
Newbie
Newbie
Posts: 2
Joined: Wed Oct 17, 2012 12:00 am

Problem with Polar Data Series

Post by PaulcH » Fri Feb 01, 2013 11:19 am

Hi

To resolve a problem with the use of the ColorGrid data series I have recently upgraded from TeeChart .NET Framework 2.0 Build 4.1.2010.08041 to TeeChart .NET Framework 2.0 Build 4.1.2012.09281. The problem with of the ColorGrid data series but I am now having a problem with the of the Polar data series. I have checked the release notes and cannot find any updates to the Polar data series, so I am puzzeled as to what is happening.

I am plotting up to 5 points, see below, on a chart using the Polar data series. With the .NET Framework 2.0 Build 4.1.2010.08041 I get the following result:
TeeChart 2012 Main Rotor.TIF
.NET Framework 2.0 Build 4.1.2012.09281
TeeChart 2012 Main Rotor.TIF (250.54 KiB) Viewed 6656 times
Using the exact same data set with .NET Framework 2.0 Build 4.1.2012.09281 I get the following:
TeeChart 2010 Main Rotor.TIF
.NET Framework 2.0 Build 4.1.2010.08041
TeeChart 2010 Main Rotor.TIF (172.32 KiB) Viewed 6690 times
I have a small test program that originally used .NET Framework 2.0 Build 4.1.2010.08041 and when I converted this to .NET Framework 2.0 Build 4.1.2012.09281 I got the expected results. As far as I can tell the way the Polar data series is used the same way. I have tried using the PolarBar data series but I still get the same results.

In addition to the above I get the following execption report when I try to save the chart using .NET Framework 2.0 Build 4.1.2012.09281, saving with used .NET Framework 2.0 Build 4.1.2010.08041 is OK:

An error has occurred during the report save: Index was outside the bounds of the array.
Index was outside the bounds of the array.: at Steema.TeeChart.Styles.ValueList.get_Item(Int32 index) at Steema.TeeChart.Styles.Polar.CalcXPos(Int32 valueIndex) at Steema.TeeChart.Styles.CustomPolar.DoDraw(Int32 valueIndex) at Steema.TeeChart.Styles.CustomPolar.DrawValue(Int32 valueIndex) at Steema.TeeChart.Styles.Series.DoDrawIndex(Int32 Index, Boolean CanID) at Steema.TeeChart.Styles.Series.Draw() at Steema.TeeChart.Styles.CustomPolar.Draw() at Steema.TeeChart.Styles.Series.DrawSeries() at Steema.TeeChart.Chart.DrawAllSeries(Graphics3D g) at Steema.TeeChart.Chart.InternalDraw(Graphics g, Boolean noTools) at Steema.TeeChart.Chart.Draw(Graphics g, Rectangle r, Boolean noTools) at Steema.TeeChart.Chart.Draw(Graphics g, Rectangle r) at Steema.TeeChart.Tools.SubChartTool.ChartEvent(EventArgs e) at Steema.TeeChart.Chart.BroadcastToolEvent(EventArgs e) at Steema.TeeChart.Chart.InternalDraw(Graphics g, Boolean noTools) at Steema.TeeChart.Chart.Draw(Graphics g, Rectangle r, Boolean noTools) at Steema.TeeChart.Chart.Draw(Graphics g, Rectangle r) at Steema.TeeChart.Chart.Draw(Graphics g) at Steema.TeeChart.Chart.Bitmap(Int32 width, Int32 height, PixelFormat pixelformat) at Steema.TeeChart.Chart.Bitmap(Int32 width, Int32 height) at Steema.TeeChart.Export.ImageExportFormat.Save(Stream stream) at Steema.TeeChart.Export.ImageExportFormat.Save(String FileName) at uk.co.sea.vrm.mgs.gui.RTBTrackAndBalanceDisplay.save(String[] args)


I would be grateful for any ideas as to what is happening. At the moment it is difficult to provide a code example that has the problem above.

Regards
Paul Harnden


Data Points being plotted IPS is Y value Phase is X value:

IPS Phase (°)
0.210 318
0.335 53
0.180 343
0.150 4
0.133 17

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Problem with Polar Data Series

Post by Sandra » Fri Feb 01, 2013 3:54 pm

Hello Paul,

I can reproduce your problem and I have added it in bug list report with number [TF02016500]. We will try to fix it to upcoming versions of TeeChartFor.Net. On the other hand, I inform you that the problem is produced when you active the Clockwise, for the moment you can disable the ClockWise as a workaround.


Thanks,
Best Regards,
Sandra Pazos / 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

PaulcH
Newbie
Newbie
Posts: 2
Joined: Wed Oct 17, 2012 12:00 am

Re: Problem with Polar Data Series

Post by PaulcH » Mon Feb 04, 2013 11:43 am

Sandra

Thank you for the prompt reply.

Given your response what I will have to do is revert to using TeeChart .NET Framework 2.0 Build 4.1.2010.08041 as the information displayed via the polar plot is significantly more important and more frequency used than that display via the ColorGrid.

Can you confirm the you have reproduced both of the problems.

I was using the TeeChart for .NET Examples, Custom Polar Null points example where it is possible to change the style. If you start at Polar, then to PolarBar, Radar, Windrose and back to Polar the points are then all displayed on the same horizontal or vertical axis.

Regards
Paul
PS I applogise if this is the 2nd reponse, first seemed to fail.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Problem with Polar Data Series

Post by Sandra » Tue Feb 05, 2013 12:22 pm

Hello PaulcH,

The bug number TF02016500 is referred by the incorrect position has data points in Polar, Polar Bar, WindRose and Radar when the ClockWise is enabled.
In addition to the above I get the following exception report when I try to save the chart using .NET Framework 2.0 Build 4.1.2012.09281, saving with used .NET Framework 2.0 Build 4.1.2010.08041 is OK:
I can not reproduce this exception using latest version of TeeChart and save the application where there is a Chart in .Net Framework 2.0 and Build 4.1.2012.09281 and .Net Framework 2.0 and Build 4.1.2012.01310. Could you please explain step to step are you doing because the exception appears or send us a simple application where the exception appears, so, we can try to reproduce it here?

Thanks,
Best Regards,
Sandra Pazos / 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

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Problem with Polar Data Series

Post by Sandra » Tue Feb 05, 2013 12:24 pm

Hello PaulcH,

The bug number TF02016500 is referred by the incorrect position has data points in Polar, Polar Bar, WindRose and Radar when the ClockWise is enabled.
In addition to the above I get the following exception report when I try to save the chart using .NET Framework 2.0 Build 4.1.2012.09281, saving with used .NET Framework 2.0 Build 4.1.2010.08041 is OK:
I can not reproduce this exception using latest version of TeeChart and save the application, where there is a Chart, in .Net Framework 2.0 and Build 4.1.2012.09281 and .Net Framework 2.0 and Build 4.1.2012.01310. Could you please explain step to step are you doing because the exception appears or send us a simple application where the exception appears, so, we can try to reproduce it here?

Thanks,
Best Regards,
Sandra Pazos / 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