Side All bar chart bug

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Adam
Newbie
Newbie
Posts: 17
Joined: Tue Nov 06, 2012 12:00 am

Side All bar chart bug

Post by Adam » Fri Apr 12, 2013 10:09 am

Hello.

Create a sample 2 series bar chart.
Change one of the series to Side-All sub-type in chart editor.

"Index was outside the bounds of the array" exception is thrown and the chart is gone.

The same effect is when you try to change sub-type at runtime (using series.SetSubGallery(10) for instance).

regards, Adam

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

Re: Side All bar chart bug

Post by Sandra » Mon Apr 15, 2013 3:24 pm

Hello Adam,

I can not reproduce the problem here, could you send your project or a simple code, where we can reproduce your problem ?

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

Adam
Newbie
Newbie
Posts: 17
Joined: Tue Nov 06, 2012 12:00 am

Re: Side All bar chart bug

Post by Adam » Thu Apr 18, 2013 11:04 am

Everything works fine with a sample code that I created, so maybe it is my bug.
But the exception that I get is strange and points me to TeeChart library:

Index was outside the bounds of the array. System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Steema.TeeChart.Styles.ValueList.get_Item(Int32 index)
at Steema.TeeChart.Styles.CustomBar.DrawValue(Int32 valueIndex)
at Steema.TeeChart.Styles.Series.DoDrawIndex(Int32 Index, Boolean CanID)
at Steema.TeeChart.Styles.Series.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.InternalDraw(Graphics g)
at Steema.TeeChart.TChart.Draw(Graphics g)
at Steema.TeeChart.TChart.OnPaint(PaintEventArgs pe)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Maybe some special settings of my actual chart and series causes the problem. I use WinForms component in WPF application (WindowsFormsHost).
I will still try to create sample code that would produce this exception.

But maybe exception details above will help you to investigate the problem on your side...

regards, Adam

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

Re: Side All bar chart bug

Post by Sandra » Thu Apr 18, 2013 3:49 pm

Hello Adam,

I would be very grateful if you can send us your project, because we can detect your problem and try to help you to solve it.

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