Problem with Polar Data Series
Posted: 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: Using the exact same data set with .NET Framework 2.0 Build 4.1.2012.09281 I get the following: 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
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: Using the exact same data set with .NET Framework 2.0 Build 4.1.2012.09281 I get the following: 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