talgalili / d3heatmap

A D3.js-based heatmap htmlwidget for R
Other
236 stars 95 forks source link

Pretty scales for row/column labels #18

Open MySchizoBuddy opened 9 years ago

MySchizoBuddy commented 9 years ago

d3heatmap prints all row and column labels and ends up in a jumbled mess. d3heatmap should choose to not print some row/column labels so that the labels looks nice. messy labels

For eg if you have 300 columns print only 30 labels, when you zoom in, calculate the new range and then print another 30 labels within this new zoomed range

iprotsyuk commented 8 years ago

+1 It's an indispensable feature for any table with more than 100 rows/columns. Beside the bad appeal, it takes ages for a heatmap to load because it draws all labels

alanocallaghan commented 8 years ago

Perhaps a better option would be to omit row or column labels in this situation? Otherwise could print a downsampled number of labels?

iprotsyuk commented 8 years ago

@Alanocallaghan, in my view, reduced number of labels would be more convenient.

jcheng5 commented 8 years ago

Does reducing the number of labels still make sense if clustering is applied (i.e. the order of rows/columns is changed from the original data)?