Jump to content
Software FX Community

SameerKhan

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by SameerKhan

  1. While moving the mouse over the series, at times we get the following exception followed by an application crash: I am following the exact sequence of assignments as mentioned in your post. I get the exception on a background thread, so I cannot really track down the exact cause of the problem System.IndexOutOfRangeException: Index was outside the bounds of the array. at ChartFX.WPF.Internal.AttributesResolver.a(Int32 A_0, Int32 A_1) at ChartFX.WPF.Internal.Highlight.SeriesPointResolver.a(Chart A_0, Boolean A_1) at ChartFX.WPF.HighlightAttributes.a(Boolean A_0, Boolean A_1) at ChartFX.WPF.HighlightAttributes.a(IHighlightResolver A_0, LogicalHighlightableItem A_1, Boolean A_2) at ChartFX.WPF.HighlightAttributes.a(Point A_0, LogicalHighlightableItem A_1) at ChartFX.WPF.Chart.a(LogicalHighlightableItem A_0, Point A_1, Boolean A_2) at ChartFX.WPF.Chart.a(Point A_0, Boolean A_1) at ChartFX.WPF.Chart.b(MouseEventArgs A_0) at ChartFX.WPF.Chart.OnMouseMove(MouseEventArgs e) at System.Windows.UIElement.OnMouseMoveThunk(Object sender, MouseEventArgs e) at System.Windows.Input.MouseEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted) at System.Windows.Input.InputManager.ProcessStagingArea() at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input) at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport) at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel) at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler) VhayuDataExplorer.vshost.exe Error: 0 : System.IndexOutOfRangeException: Index was outside the bounds of the array. at ChartFX.WPF.Internal.AttributesResolver.a(Int32 A_0, Int32 A_1) at ChartFX.WPF.Internal.Highlight.SeriesPointResolver.a(Chart A_0, Boolean A_1) at ChartFX.WPF.HighlightAttributes.a(Boolean A_0, Boolean A_1) at ChartFX.WPF.HighlightAttributes.a(IHighlightResolver A_0, LogicalHighlightableItem A_1, Boolean A_2) at ChartFX.WPF.HighlightAttributes.a(Point A_0, LogicalHighlightableItem A_1) at ChartFX.WPF.Chart.a(LogicalHighlightableItem A_0, Point A_1, Boolean A_2) at ChartFX.WPF.Chart.a(Point A_0, Boolean A_1) at ChartFX.WPF.Chart.b(MouseEventArgs A_0) at ChartFX.WPF.Chart.OnMouseMove(MouseEventArgs e) at System.Windows.UIElement.OnMouseMoveThunk(Object sender, MouseEventArgs e) at System.Windows.Input.MouseEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted) at System.Windows.Input.InputManager.ProcessStagingArea() at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input) at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport) at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel) at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler) at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler) at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter) at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) at System.Windows.Threading.Dispatcher.Run() at System.Windows.Application.RunDispatcher(Object ignore) at System.Windows.Application.RunInternal(Window window) at System.Windows.Application.Run(Window window) at System.Windows.Application.Run() at VhayuDataExplorer.App.Main() in C:\dev\vhayu trunk\VhayuDataExplorer\obj\Debug\App.g.cs:line 48 at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()
  2. We have subscribed to the DataBound event on the Chart and use this event to readjust the scroll view. But we think there is some kind of a race condition which is causing application crashes and we get index out of bound exceptions. We calculate the total points that are in the chart at the time we add a series to the chart using the Chart.Data.Points property, and use this information to set the range of our scroll view. Also we notice that when a series is removed from the Chart the total data points doesn't necessarily go down. What would be the correct way to solve our problem? Thanks, -S
  3. Would I need to use a Marker for this? The problem is, I have thousands of points and I do not want to use a marker, I just want one the point which is under the mouse cursor to be highlighted.
  4. Is there some setup required before I setup the hIghlight mode, with the current setup, Setting the HighlightMode on the chart doesn't seem to be doing anything,
  5. I have multiple series, with thousands of points per series. I am already using a tooltip to show data for a specific point, but as you would be aware, the tooltip does not accept focus, and is not clickable. The use case is, that the user should be able to click on the marker, and I would perform other actions based on the point data which was clicked. I already have the code which handle clicks etc, I just need a visual cue for the selected point [ Adding markers to all the points is not feasible, since I have thousands of points]
  6. I am trying to create a Marker Attribute DataTemplate, such that when the mouse is over a specific point of the series, the template would show a clickable button. I tried to use the sample template and modify it for my needs, but w/o any luck. Is there a detailed sample on how to use a DataTemplate for Markers?
  7. So, did you find a solution to your problem?
  8. So, I do have different Y Axis for each of my panes, There was some documentation on Axis Proportions, but I don't see that attribute exposed anywhere. With the way things are currently, is there a way to have different Heights for my Y axis? If not, Is there a way I can be updated as to when the feature would be available. Thanks, -Sameer
  9. I have multiple panes set up for a single chart, is there a way to have a different rendering style for each of the panes?
  10. I have a set of Panes in my Chart. I need to control the height of the various panes in the charts. What is the correct way of doing this.
×
×
  • Create New...