hafen / trelliscopejs

TrelliscopeJS R Package
https://hafen.github.io/trelliscopejs
Other
263 stars 37 forks source link

Alternative space use rules #31

Open jrounds opened 7 years ago

jrounds commented 7 years ago

image

It occurred to me when I was looking at this display that a change of the way space is used might have used more space. It seems to me currently a panel width is determined by the image size? What if instead the panel width was determined by available width and the image floats in the center? Then the information values would have more display room. I am sure there is some more technical way to say this, but basically I am saying what if the grid had widths that took up everything, and the image floated in its available space from that rule?

hafen commented 7 years ago

Actually this is mainly an issue of the grid always being "fixed". What I mean by that is that the number of rows and columns is explicitly specified. Here, it's 3 rows x 6 columns. A nice alternative in the UI would be the ability to alternatively specify the desired number of panels per page, and then have it optimize filling screen space based on the aspect ratio of plot + labels to try to meet that number. I've been wanting to do this so I'll look into it.