Page 1 of 1
Side All bar chart bug
Posted: Fri Apr 12, 2013 10:09 am
by 15663950
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
Re: Side All bar chart bug
Posted: Mon Apr 15, 2013 3:24 pm
by 10050769
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,
Re: Side All bar chart bug
Posted: Thu Apr 18, 2013 11:04 am
by 15663950
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
Re: Side All bar chart bug
Posted: Thu Apr 18, 2013 3:49 pm
by 10050769
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,