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

Feature request: Duration ticks #181

Open
runarberg opened this issue Nov 22, 2020 · 2 comments
Open

Feature request: Duration ticks #181

runarberg opened this issue Nov 22, 2020 · 2 comments

Comments

@runarberg
Copy link

runarberg commented Nov 22, 2020

When plotting duration values getting nice ticks is difficult. If the duration is in milliseconds but scale to (say) hours the nice tick values turn weird. There are workarounds, but they are non trivial, especially if you don’t know which time units the duration values scale to.

Being able to somehow specify scaling in duration values would make it a lot easier to plot duration values. Preferably it should be as easy as plotting time values.

@runarberg
Copy link
Author

Related d3/d3-scale#177

@runarberg
Copy link
Author

Things to keep in mind: Temporals are a stage 2 proposal and include a duration data structure. This will make duration arithmetic a lot easier and robust. Perhaps a new duration scale using this data structure (similar to time scale) is a better option for the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant