Strange Behavior & Bugs: Stacked Area Chart
Strange Behavior & Bugs: Stacked Area Chart
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.
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.
BTW, the teechart version I am using is TeeChart 2.0.2469.25744 for VS2003.
Thanks.
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.
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.
BTW, the teechart version I am using is TeeChart 2.0.2469.25744 for VS2003.
Thanks.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
I've sent you a forums private message with the e-mail address where you can send us the project.
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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 . 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:
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 . 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;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
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.
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.
MROI
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi MROI,
I wouldn't consider it a bug unless we can reproduce it consistently.
Thanks for the information. I've added it to the issue in the bug list.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.
I wouldn't consider it a bug unless we can reproduce it consistently.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |