Strange Behavior & Bugs: Stacked Area Chart
Posted: Fri Oct 13, 2006 4:02 am
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.