We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Annotation.init does not accept IConvertible for X and Y like other APIs.
Annotation.init
IConvertible
X
Y
Try to use a DateTime as the X for Annotation.init, which works fine with other APIs like Shape.init.
DateTime
Shape.init
Should be consistent.
Requires a float.
float
Converting to milliseconds since unix epoch and passing that in as a float.
2.0.0-beta9
I noticed this problem does not seem unique to the .NET implementation: see here.
The text was updated successfully, but these errors were encountered:
Good catch, i am on it right now ;)
Sorry, something went wrong.
Should be fixed in the next version:
let testAnnotation = Annotation.init(X=System.DateTime.Now, Y=0,Text="test") Chart.Line([System.DateTime.Now, 5]) |> Chart.withAnnotations [testAnnotation] |> Chart.Show
Should be fixed in the latest package. Please let me know if there are still problems
Confirmed in preview release - thanks @kMutagene !!
No branches or pull requests
Description
Annotation.init
does not acceptIConvertible
forX
andY
like other APIs.Repro steps
Try to use a
DateTime
as theX
forAnnotation.init
, which works fine with other APIs likeShape.init
.Expected behavior
Should be consistent.
Actual behavior
Requires a
float
.Known workarounds
Converting to milliseconds since unix epoch and passing that in as a float.
Related information
2.0.0-beta9
I noticed this problem does not seem unique to the .NET implementation: see here.
The text was updated successfully, but these errors were encountered: