Skip to content
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

A top-level timeZone option #531

Open
mbostock opened this issue Sep 4, 2021 · 3 comments
Open

A top-level timeZone option #531

mbostock opened this issue Sep 4, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@mbostock
Copy link
Member

mbostock commented Sep 4, 2021

Related #384, what if instead of “time” (local time) and “utc” (UTC time) scales, we supported a top-level timeZone option that affected the interpretation of any “time” scales. For example, you could explicitly set the time zone to “America/Los_Angeles” so that all viewers see the same time zone. (Caveat: until JavaScript has built-in support for time zone math, it’s probably not practical to implement this.)

@mbostock mbostock added the enhancement New feature or request label Sep 4, 2021
@Fil
Copy link
Contributor

Fil commented Jan 26, 2023

This request for exporting ticker in d3-time mentions timezones:
d3/d3-time#61

@reubano
Copy link

reubano commented Jan 26, 2023

I added my current solution d3/d3-time#61 (comment)

which powers my timezone aware Plot fork

let graph = Plot.plot({
    ...
    x: {
        type: "timezone",
        timezone: "America/Chicago",
        ...
    },
    ...
)}

@Fil
Copy link
Contributor

Fil commented Jan 26, 2023

Thank you @reubano; noting for myself, a shorter link to the relevant commit 24f9c46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants