-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
timezone-aware data and axes #3870
Comments
Related from Python: plotly/plotly.py#209 |
A bit of extra info about what this could do:
This would allow me to provide data in a mix of input timezones and display it in a particular fixed output timezone. |
This issue has been tagged with A community PR for this feature would certainly be welcome, but our experience is deeper features like this are difficult to complete without the Plotly maintainers leading the effort. Sponsorship range: $10k-$20k What Sponsorship includes:
Please include the link to this issue when contacting us to discuss. |
Can we do this on top of Then if you specify a timezone, any date data that doesn't include timezone info is assumed to be in that timezone. Any date data that includes timezone info is shifted into that timezone. If we want to support the case of date data without included timezone info but representing a timezone different from the axis timezone, we could follow the example of world calendars and add attributes like |
all of those sound fine to me. IIRC there wasn't any appetite when I created this issue for playing too much with the existing |
If the timezone is like |
Bringing in @ndrezn's comment from #6519:
My take on this:
|
True. Nothing we can do about that, other than to suggest to the user that they send that data with timezone info included. I still think this is the way to structure the API, we just document that ambiguity. |
Well, you could just accept data in real offsets (i.e. not infer against the axis)... I guess the use-case you're interested in is just like the naive "every day at 8am but draw it in ET?" |
Talked with @alexcjohnson and @cleaaum last week to formalize in more detail what this API could look like -- here is a summary: API
Notes
Open to questions/comments -- in particular @alexcjohnson please let me know if I missed or misremembered anything. |
Hi @emilykl , This looks like a very comprehensive study of the problem. |
We're hoping this can all be done with built-in browser APIs but there's still some research to be done before we can confirm this. |
We could add a new axis type that's timezone-aware.
The text was updated successfully, but these errors were encountered: