Closed harryhoch closed 8 years ago
It depends.
Here is an example that we may want to hide the mini map:
Here is an example that we want to keep the mini map:
How about we keep it if there are more than 10 rows or columns. …? On Nov 5, 2015, at 4:10 PM, Kent Shefchek notifications@github.com<mailto:notifications@github.com> wrote:
It depends.
Here is an example that we may want to hide the mini map: [capture2]https://cloud.githubusercontent.com/assets/195873/10981781/bde73538-83d7-11e5-9305-763324233aa0.PNG
Here is an example that we want to keep the mini map: [capture]https://cloud.githubusercontent.com/assets/195873/10981770/afd8a206-83d7-11e5-9f37-3c4cd33d512c.PNG
— Reply to this email directly or view it on GitHubhttps://github.com/monarch-initiative/phenogrid/issues/214#issuecomment-154193970.
+1 on removing it (at least sometimes).
you need it only if for moving around. since you have a hardcoded number of rows and cols, then the minimap is only needed if there are more rows/cols than that.
which is a separate issue of what to do if you have << max row or col, but the other dimension is much larger (with say 2 rows but 100 columns). in that case, you will still need the minimap for navigation (until you add scrollbars or other means of navigation). in this case, you probably should just fix the way it looks (don't put the rows at the top/bottom of the grid - it is confusing and looks odd...) in those cases, you might think about scaling the size of the tiny colored boxes to be bigger, or don't evenly space them... make the minimap accurately reflect what is actually viewed in the grid itself (close together).
@nlwashington, agreed. We should still look into scrollbars..
I'm thinking about the scrollbars + mini map design. Scrollbars can't show the overall grid data density, but it's also hard/impossible to use a square mini map to reflect the actual ratio of the columns (say 1000) and rows (20) with all the cells evenly spread. If we don't care about the overall data distribution, scrollbars fit the purpose of navigation/moving regardless of the number of columns/rows.
@yuanzhou agreed, nothing will be perfect. How hard would it be to implement scrollbars?
@harryhoch my plan is to look into the mini map code, and know how the drag updates the columns/rows. Then create SVG rect with draggable area for vertical and horizontal to make them function like scrollbars. When we drag the scrollbar slider, the grid view and mini map shaded area will also need to be updated accordingly. And also hide the mini map as well as scrollbars if either the number of columns or rows is less than the config value.
ok @yuanzhou, sounds good.
I think I found a better solution to address this issue by still using the mini map not not adding the scrollbars.
Here are the different cases (before inverting the axis):
We check both x and y items to see if they are within the default limits. We can choose either x or y as the baseline. Here I use y count.
@yuanzhou, I like this analysis, but I think there is still a strong feeling that scrollbars are preferred. @nlwashington, what do you think? @yuanzhou, how hard would it be to do scrollbars?
i really like what's been done here to shrink the minimap when those times warrant it. and yes, when the rows/cols are < max, then yes i think adding scrollbars for the appropriate axis is still desired in addition.
thanks, @nlwashington. It sounds like this might be more of a "like to have" , more than a "must have". @yuanzhou, how hard would scrollbars be?
@harryhoch can you clarify what the like/must is referring to exactly?
@nlwashington, trying to prioritize. Is this something that you consider very important, or just somewhat important?
which "thing"? adding scrollbars, or the making the minimap look correct?
scrolabars. we should absolutely fix the minimap
i consider ease of navigation around the grid essential.
ok, so you would put a high priority on srollbars.. got it. @yuanzhou, how hard is this?
@harryhoch I've played with the mini map fix in my branch and I think I've got 90% of the work done.
Adding scroll bars shouldn't be very hard, it may take a bit time to figure out how to have the grid cells and the mini map view updated once we scroll. I'll dig into it and post my progress and questions here for feedback.
Great, thanks.
@nlwashington, @doctorbud made an interesting suggestion - wanted to get your feedback. Instead of scrollbars, we could adopt a tablet/map -like navgiation whereby you would click-drag while moving in one of the directions, effectively providing a map-like pan. Thoughts?
This is not the best example but kinda similar to what we discussed: http://bl.ocks.org/nnattawat/9689303#index.html
As Harry mentioned, the grid cell tooltip hover over may create some annoying behaviors when we drag the whole grid region if the mouse happens to hover over a grid cell.
Have merged the minimap PR #217, will create a new ticket for scrollbars for discussions.
can we hide the minimap when either dimension is small (say < 10)?