David Wright Posted November 17, 2021 Report Share Posted November 17, 2021 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) Quote Link to comment Share on other sites More sharing options...
Felix Posted November 19, 2021 Report Share Posted November 19, 2021 Can you provide a small repro case for your issue. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.