Page 1 of 1

Strange Behavior & Bugs: Stacked Area Chart

Posted: Fri Oct 13, 2006 4:02 am
by 9641843
Hi,

I am having a strange behavior with the stacked area chart.

Why is it when i have series with negative values and series with positive value, the negative series is stacked towards the positive? If the positive value series is not shown, then the charts is stack towards the negative area.

It will be best shown in the image below. The following image show how the chart is display when only negative value series is selected, the chart is stacked towards the negative.

Image

In the above image I have two more bugs, the last month in the X axis is missing.

Also, when user drag the scrollbar on the legend up and down too fast and move out of the legend, the entire application crashes with the following error stack.

Source: TeeChart
Stack: at Steema.TeeChart.Tools.ScrollBar.CalcDelta(Int32 A, Int32 B)
at Steema.TeeChart.Tools.ScrollBar.MouseMove(Int32 X, Int32 Y)
at Steema.TeeChart.Tools.ScrollBar.MouseEvent(MouseEventKinds kind, MouseEventArgs e, Cursor& c)
at Steema.TeeChart.Chart.BroadcastMouseEvent(MouseEventKinds kind, MouseEventArgs e, Cursor& c)
at Steema.TeeChart.Chart.BroadcastMouseEvent(MouseEventKinds kind, MouseEventArgs e)
at Steema.TeeChart.TChart.OnMouseMove(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseMove(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Avanade.MRoI.FordOptWin.AppStart.LaunchApp(String fileName) in D:\My Documents\Visual Studio Projects\WinApplication\AppStart.cs:line 124
Message: Attempted to divide by zero.

The next image shows the stacked area chart when a positve value series is added, the chart stacked towards positive side.

Image

BTW, the teechart version I am using is TeeChart 2.0.2469.25744 for VS2003.

Thanks.

Posted: Fri Oct 13, 2006 11:28 am
by narcis
Hi MROI,

Could you please send us an example we can run "as-is" to reproduce those problems here?

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

Thanks in advance.

Posted: Fri Oct 13, 2006 11:31 am
by 9641843
Hi,

Let me develop a sample program to reproduce the problem to be posted to the newsgroup.

Get back to you on Monday.

Thanks.

Posted: Thu Oct 19, 2006 9:34 am
by 9641843
I'm having problem in posting the sample codes in the newsgroup. Any other channels I could send the sample codes to you? It would be too long to post it here.
Please advice. Thanks.

Posted: Thu Oct 19, 2006 9:40 am
by narcis
Hi MROI,

I've sent you a forums private message with the e-mail address where you can send us the project.

Thanks in advance.

Posted: Thu Oct 19, 2006 11:49 am
by 9641843
Will send it to that e-mail.

Thanks.

Posted: Thu Oct 19, 2006 2:33 pm
by narcis
Hi MROI,

Thank you very much for the example project and information.

Please find below the answers to your questions:

1. I could reproduce the issue here and this is certainly a bug (TF02011836) which I've added to our defect list to be fixed for future releases.

2. This is also a bug (TF02011838) but a lot of fast scrolling is necessary to reproduce it :wink:. Anyway I also added it to the defect list to be fixed.

3. I couldn't reproduce it here, have you found any consistent way to reproduce it? A trick could be setting a little offset to the bottom axis maximum value:

Code: Select all

			this.tchChart.Axes.Bottom.MaximumOffset = 1;

Posted: Thu Oct 19, 2006 5:56 pm
by 9641843
Thanks for the prompt reply.

Hopefully, the bug 1 and 2 can be fix in the next release soon.
For bug 2, we manage to crash the application easily by dragging the scrollbar on the legend fast and moving the mouse out of the application.

For the bug 3, we will try setting the maximumoffset.

Thanks again.

Posted: Fri Oct 20, 2006 7:42 am
by narcis
Hi MROI,
For bug 2, we manage to crash the application easily by dragging the scrollbar on the legend fast and moving the mouse out of the application.
Thanks for the information. I've added it to the issue in the bug list.
For the bug 3, we will try setting the maximumoffset.


I wouldn't consider it a bug unless we can reproduce it consistently.

Posted: Fri Oct 20, 2006 10:22 am
by 9641843
For the issue 3, missing month, we manage to fix it by setting the maximumoffset.

Thanks.