|
|
| | Ask HN: What's the best approach for displaying data tables on mobile? | | 7 points by hilti 76 days ago | hide | past | favorite | 9 comments | | I’m working on a web app with some fairly data-heavy tables (think product inventories, user lists, analytics dashboards, etc.) and the mobile experience is pretty rough.
On desktop everything looks fine, but on phones it’s a mess. I’ve tried just letting tables scroll horizontally but it feels clunky. I’ve seen some apps convert tables to card-style layouts, others use expandable rows, and some just hide columns.
What patterns have you found actually work well in production? Any libraries or examples you’d recommend checking out? Bonus points if you’ve done user testing on this and have data on what users actually prefer. |
|

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
|
1. Pay attention to the first 2-3 columns, the ones the user immediately sees. E.g. short or hidden id, short but readable name, useful next column (e.g. sales or views or whatever is the most useful data).
2. Put columns that need to be evaluated together close to each other. On desktop it's easy to see 2 numbers even if there's a column in the middle, on mobile it may require scrolling horizontally.
In summary, just focus on what people want to see at a glance and make it easier for them.
I'm just a user suffering the pain, this is an example of a table I need/want to monitor and it's very poorly done, I need total revenue = sum of column 5 + 7, on mobile it's a very bad experience due to column 6 in the middle, unnecessary width of some columns with repeated text, etc. https://app.vx.tools/income/BfgMdL4FaNHp5zZpD7WMYG5sZUrCWQPE...