Jump to content
Software FX Community

System.ArgumentOutOfRangeException: Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks.


David Wright

Recommended Posts

When I change my chart from a line chart to a bar chart I get the above error. Has anyone else seen this? How did you get around it?

Here is my stacktrace...

Exception thrown: 'System.ArgumentOutOfRangeException' in mscorlib.dll
System.ArgumentOutOfRangeException: Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks.
Parameter name: ticks
   at System.DateTime..ctor(Int64 ticks)
   at ChartFX.WinForms.DataUnit.DoubleToDate(Double d)
   at ChartFX.WinForms.ae.a(Double A_0, ValueFormat A_1)
   at ChartFX.WinForms.Axis.a(PaintMarkBase A_0, c A_1, AxisScale A_2, Rectangle[] A_3, RepaintFlags A_4, c A_5, d A_6)
   at ChartFX.WinForms.Axis.a(v A_0, Rectangle[] A_1, RepaintFlags& A_2, c A_3, AxisSection& A_4, AxisScale& A_5)
   at ChartFX.WinForms.AxisCollection`1.Paint(v pms, Rectangle[] margins, c axisPaint)
   at ChartFX.WinForms.v.b(Boolean A_0, Boolean A_1)
   at ChartFX.WinForms.v.l()
   at ChartFX.WinForms.Chart.a(PaintBar A_0, IGraphicsEx A_1, Rectangle A_2)
   at ChartFX.WinForms.az.b(PaintBar A_0, IGraphicsEx A_1, Rectangle& A_2)
   at ChartFX.WinForms.Chart.a(PaintBar A_0, IGraphicsEx A_1, Rectangle& A_2)
   at ChartFX.WinForms.Internal.DockableFrame.a(IGraphicsEx A_0, Rectangle& A_1, PaintBar A_2, Rectangle A_3)
   at ChartFX.WinForms.Chart.OnPaint(PaintEventArgs e)
   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)

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...