You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wide tables aren't a huge problem if you know to click and drag right. But it's not at all obvious to do that. (it also tends to blue-select any content as it's dragging.) Depending on column widths, public users might entirely miss all the columns to the right.
There is a scrollbar at the bottom of the table, but I'm displaying ALL my records because it's the only way for datasette-vega to make accurate charts. So that bottom scrollbar is likely to be missed. I wonder if some sort of javascript-y mouseover to an arrow might help, similar to those seen in image carousels. Ah: here's a perfect example:
(I saw some other closed issues related to horizontal scrolling, and admit I don't entirely understand them. For instance, the animated gif at #998 (comment) confuses me. )
Reacted by Bill Mill, Knut Wannheden, Ray Voelker and Didymograptus
Could give the table a max-height (either the window or work out the available space) so that it is both vertically/horizontally scrollable and you don't have to scroll to the bottom in order to see this;
On a desktop browser, what I think I'd want is an absolute grid to work with - left query/filters, TR chart (or map), BR table. No problem with scrolling then. Here is a mockup I made when this was about the map plugin:
I worry that a max height will be a problem when my facets are open. (I've got 35 active ingredients, and so I've set the default_facet_size to 35.)
I don't understand this one. I'm observing the screenshot... very helpful! (Ah, okay, TR = Top Right and BR = Bottom Right. Absolute grid refers to position style.) All the scroll bars look a little wonky to me. I've also got a lot of facets, and prefer the extra horizontal space so that not as many facets disappear below the fold. My site also has end users... some will be on mobile... not sure what the absolute grid would do there...
(I still think a hover-arrow that scrolls upon click would help, too...)
But meanwhile, I'm going to go ahead and see if I can apply that shadow. (Never would've thought of that.) Hmmm... I'm not an SCSS person. This looks helpful! https://jsonformatter.org/scss-to-css
Max height would still let you scroll the page to underneath the facets to the table, but would mean the table would never take up more than your window size, so the horizontal scrollbar would be visible as soon as the table took up the size of the window.
Yes, this wouldn't be for mobile :) It'd be desktop-only styling. On mobile you can scroll much more easily with touch, anyway. In your case, perhaps better would be the whole top half would be facets, bottom left quadrant chart, bottom right table. Depends upon the particular use case, as you say.
user report: I found this issue because the first time I tried to use datasette for real, I displayed a large table, and thought there was no horizontal scroll bar at all. I didn't even consider that I had to scroll all the way to the end of the page to find it.
Just chipping in to say that this confused me, and I didn't even find the scroll bar until after I saw this issue. I don't know what the right answer is, but IMO the UI should suggest to the user that there is a way to view the data that's hidden to the right.
This feature is really needed. It was actually one of the first thing, I noticed lacking when using it for the first time. Is there an update on this topic?
I was getting ready to deploy this plugin, and was wondering if I could get a quick code review. Full disclosure, I'm not a front-end dev, and this was a result of a few sessions with Claude Code/ChatGPT
I probably need to add some tweaks to this so that the scroll bar doesn't interfere with content/links at say the bottom of the screen, or could accept parameters etc... but, this solves a really big usability issue I was having for working with wide tables!
Activity
dracos commentedon Apr 20, 2021
My suggestions, originally made on twitter, but might be better here now:
Could have a CSS shadow (one of the comments on https://stackoverflow.com/questions/44793453/how-do-i-add-a-top-and-bottom-shadow-while-scrolling-but-only-when-needed is a codepen for horizontal instead of vertical);
Could give the table a max-height (either the window or work out the available space) so that it is both vertically/horizontally scrollable and you don't have to scroll to the bottom in order to see this;
On a desktop browser, what I think I'd want is an absolute grid to work with - left query/filters, TR chart (or map), BR table. No problem with scrolling then. Here is a mockup I made when this was about the map plugin:


mroswell commentedon Apr 20, 2021
@dracos I appreciate your ideas!
But meanwhile, I'm going to go ahead and see if I can apply that shadow. (Never would've thought of that.) Hmmm... I'm not an SCSS person. This looks helpful! https://jsonformatter.org/scss-to-css
dracos commentedon Apr 20, 2021
llimllib commentedon May 12, 2022
user report: I found this issue because the first time I tried to use datasette for real, I displayed a large table, and thought there was no horizontal scroll bar at all. I didn't even consider that I had to scroll all the way to the end of the page to find it.
Just chipping in to say that this confused me, and I didn't even find the scroll bar until after I saw this issue. I don't know what the right answer is, but IMO the UI should suggest to the user that there is a way to view the data that's hidden to the right.
mfiro commentedon Dec 14, 2024
This feature is really needed. It was actually one of the first thing, I noticed lacking when using it for the first time. Is there an update on this topic?
rayvoelker commentedon Jan 21, 2026
I was getting ready to deploy this plugin, and was wondering if I could get a quick code review. Full disclosure, I'm not a front-end dev, and this was a result of a few sessions with Claude Code/ChatGPT
https://github.com/chimpy-me/datasette-horizontal-scroll
edit: added the image
rayvoelker commentedon Jan 22, 2026
@simonw I created a release for this plugin
https://pypi.org/project/datasette-horizontal-scroll/
I probably need to add some tweaks to this so that the scroll bar doesn't interfere with content/links at say the bottom of the screen, or could accept parameters etc... but, this solves a really big usability issue I was having for working with wide tables!
2026-01-22.10-36-37.mp4
UI for selecting and re-ordering columns on the table page (#2662)
simonw commentedon Nov 18, 2026
Handled in table redesign here: