d3/d3-array

Feature request: Duration ticks

runarberg opened this issue · 2 comments

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.

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.