shutterstock / rickshaw

JavaScript toolkit for creating interactive real-time graphs
https://shutterstock.github.io/rickshaw
MIT License
6.53k stars 939 forks source link

Add middle-ticks between year and decade #611

Open andrewcsmith opened 6 years ago

andrewcsmith commented 6 years ago

The 10-fold increase between year and magnitude for the automatic setting of the Time axis is particularly difficult for narrow charts. It would be great to have the timeUnit automatically set the resolution at a finer grain, such as 2 years, 5 years, etc. (It could also be possible, once we get to years, to infer the ideal distance between ticks and use that.)

https://github.com/shutterstock/rickshaw/blob/master/src/js/Rickshaw.Fixtures.Time.js#L13