timwis / vizwit

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

Bar should scroll horizontally for excess columns #195

Closed timwis closed 6 years ago

timwis commented 7 years ago

When you have a dataset that has 100 categories, it's a bit much to fit that all into a bar chart. Vizwit v1 lets you scroll horizontally. We'll need to investigate whether ~~Chart.js plottable.js lets you do that. In theory, it's possible to write that functionality ourselves (we're just changing the underlying dataset being shown on the chart) but it'd be nice if it came out of the box.~~

EDIT: This is particularly important for mobile-friendly

timwis commented 7 years ago

Someone's done it in this fiddle. Related SO question. And this fiddle is another example.

timwis commented 6 years ago

There's also http://plottablejs.org/docs/classes/plottable.interactions.panzoom.html

timwis commented 6 years ago

In the d3 world, here's an example.