timwis / vizwit

An interactive data visualization tool
http://vizwit.io
GNU General Public License v2.0
100 stars 35 forks source link

DateTime axis should be responsive #225

Closed timwis closed 6 years ago

timwis commented 6 years ago

On small screens we should show fewer ticks.

Going further (and this may be a separate feature), if we compute the difference between min date and max date, and it's within one year, we should show months on the axis. If it's a few years, we should show month+year. If it's many years, we should show years. d3's axis methods support this sort of thing I think so it shouldn't be too difficult.

timwis commented 6 years ago

I've got it showing fewer on smaller screens, but we really need the text to use word wrap. Here's one implementation in d3.