Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
525
Error:Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks
posted

Has anyone ever seen an exception coming from the CategoryDateTimeXAxis like this. I get this error on a very simple chart where the xAxis minimum value is set to DateTime of Ticks = 439832878.

InnerException: System.ArgumentOutOfRangeException

       Message=Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks.

Parameter name: ticks

       Source=mscorlib

       ParamName=ticks

       StackTrace:

            at System.DateTime..ctor(Int64 ticks)

            at Infragistics.Controls.Charts.CategoryDateTimeXAxis.RenderAxisOverride(Boolean animate)

            at Infragistics.Controls.Charts.Axis.DoRenderAxis(Boolean animate)

            at Infragistics.Controls.Charts.ContentInfo.DoRefresh()

            at Infragistics.Controls.Charts.ChartContentManager.DoRefresh()

       InnerException:

 

Thanks.

  • 138253
    Offline posted

    Hello Sudnya,

     

    Thank you for your post. I have been looking into it and I created a sample project for you following your scenario and everything seems to work ok on my side. If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your behavior and send it back to me for further investigation.

     

    Looking forward for your reply.

    XamDataChartMinimumTicks.zip
    • 525
      Offline posted in reply to Stefan

      Hi Stefan.

      Thank you for your reply. I haven't looked at your solution yet because the VS is not compatible. I am using VS2010.  But here is a non-working version one of the engineers have created.

      If you look at the TestVM.cs, we have clearly marked what works and what doesn't work. Another thing to note is that if you keep the line that doesn't work in the TestVM.cs but modify the MainWindow.xaml.cs as per our comments, it works.

      Thanks for your help and looking forward to hearing your comments.

       

      Sudnya

      XAMDataChartIssue.zip
      • 138253
        Offline posted in reply to sudnya_s

        Hello,

         

        Thank you for your feedback and I am glad that you resolved your issue.

         

        • 525
          Offline posted in reply to Stefan

          Yes. It is worked out. I was able to get the licenses for the upgrade.

          Thank you!!

          Sudnya

          • 138253
            Offline posted in reply to sudnya_s

            Hello Sudnya,

             

            I am just checking if you got this worked out or you still require any assistance or clarification on the matter.

            • 138253
              Offline posted in reply to sudnya_s

              Hello Sudnya,

              You can download a trial version and test your scenario. You can also contact with our sales team in order to buy a license.

              • 525
                Offline posted in reply to sudnya_s

                Hi Stefan.

                I cannot see any of these service releases under my account. How do I get them? I have registered my WPF 2012 V2.

                 

                Thanks.

                Sudnya