-
Notifications
You must be signed in to change notification settings - Fork 601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CartesianChart DateTimePoint bug: When Series have no values, Labeler in Axis throws ArgumentOutOfRangeException #629
Comments
Try checking to see if value < 0 and if so set date to a default value. Labeler = value => value >0 ? |
Thanks for the report, this is fixed with the referenced commit and will be included in the next version of the library. |
The same exception gets thrown for me when I move the crosshair to the edge of an Axis using DateTimePoint in their Labeler. Also if I try to zoom on the Axis.
But only if there are no points in the Series. So I thought I'd try to answer on this issue. I can also open a new issue if needed. I am using WinUI3, Win10 and beta514 |
The referenced commit fixes that issue @danielgruethling, this fix will be included in the next version of the library, thanks for the report! |
Describe the bug
System.ArgumentOutOfRangeException: 'Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks. Arg_ParamName_Name' is thrown when Series have no value.
The value of Labeler is -2000000000000 and new DateTime((long) value) throws exception.
environment: WinUI 3, Windows 10
The text was updated successfully, but these errors were encountered: