-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Feature request: DateTime support #87
Comments
Hey @amellnik I actually ran into this the other day. The issue is that julia exports DateTime to string like this:
whereas plotly.js expects the same, but without the T: I asked the plotly.js guys if they could support the version with the `T, and they made it seem like it would be a bigger issue than "just allowing it". It's too bad because the version with the T is the official ISO 8601 specification. There are two things I could think of on this side:
If anyone has other ideas, I'd love to hear them! |
Not a solution of course, but you can plot DateTime through Plots. It uses On Thursday, October 13, 2016, Spencer Lyon [email protected]
|
I believe this is fixed in the latest plotly.js releases from upstream. If someone finds otherwise please reopen or make a comment so I can reopen |
I currently get the error below when trying to use a datetime vector as x axis. EDIT: I can see that string.(df.datetime) does the trick for the time being.
|
Hey @kafisatz I believe the issue comes from the definition of this internal type If we were to add DateTime to that list I think the issue would be fixed. @kafisatz are you willing to make this change, test this out using your data, and submit a pull request over in PlotlyBase (the repo where that union us defined) if it works? |
I can confirm that this change does the trick for my data. |
Excellent! Thank you for making the pull request |
I think it's not a high priority for most of us since
Date
s work fine, but it would be nice to have. Right nowDateTime
s don't throw an error, but are treated as categorical strings.The text was updated successfully, but these errors were encountered: