<?xml version="1.0" encoding="utf-8"?>

Designing tables is a nuanced art that marries practicality with aesthetic appeal. Users should effortlessly find what they need, which calls for a thoughtful layout and alignment, complemented by appropriate spacing. The real challenge is in presenting complex information in a manner that is both clear and visually engaging.

An overload of information can lead to a cluttered and challenging-to-read table. Conversely, too little information may render the table ineffective. Striking a balance between these extremes is crucial. Understanding each user's context — the how and why of their interaction with the table — is also pivotal in guiding these design decisions.

Exercise #1

Style tables for scannability

Style tables for scannability Bad Practice
Style tables for scannability Best Practice

While visual appeal is crucial, it should never compromise the clarity and scannability of your table. Strive for a balance where aesthetics enhance, rather than overshadow, functionality. To achieve this balance:

  • Differentiate the header to establish an information hierarchy. This can be achieved by using a more prominent background, font weight, and color to bolster contrast and scannability.
  • Consider the zebra-striped table style. Alternating row backgrounds in such tables guide users' eyes, making large data sets appear more organized and harmonious. However, exercise caution with the contrast in stripe colors — too much can add unwanted visual noise, which might hinder rather than help scannability.
  • Maintain a thoughtful color hierarchy. Excessive or purposeless use of colors can lead to visual chaos, shifting focus away from the content's importance[1]

Pro Tip: For long tables, consider adding a sticky header at the top. This keeps column labels always in sight, making it much easier for users to find the information they need.

Exercise #2

Indicate overflow content

Indicate overflow content Bad Practice
Indicate overflow content Best Practice

The contents of a table don't always fit in fixed-sized cells, so overflows are inevitable. When content overflows in tables, you can choose to:

  • Indicate that the text has been truncated using ellipses
  • Provide tooltips containing the full text when the mouse hovers the cell
  • Provide an option for users to adjust the size of columns and rows
  • Allow users to hide and reorder columns to only display the information that is relevant to them.
Exercise #3

Optimize numeric data display

Optimize numeric data display Bad Practice
Optimize numeric data display Best Practice

Numeric data is often the core of table design, and designers must understand how to present it correctly. Here are some key recommendations:

  • Right alignment for numbers: Right aligning numbers is the most effective choice in tables as it allows users to easily compare numeric values, no matter their length or size.
  • Utilizing tabular figures: Tabular figures refer to a font format where all digits have the same width. For instance, the digit '1' occupies as much space as '9'. This uniformity ensures that numbers with the same digit count appear consistently proportional, aiding in scanning and comparison.
  • Choosing the right typeface: Choose typefaces that inherently include tabular figures. This ensures that your numeric data is visually appealing and practical for user interaction.

Pro Tip: Align headers the same way as the content in their respective columns.

Exercise #4

Align text to the left

Align text to the left Bad Practice
Align text to the left Best Practice

In left-to-right languages, such as English, the natural reading pattern is from left to right. When table text is not aligned to the left, users may find it difficult and frustrating to scan the content.

By aligning the text to the left, the content becomes more scannable and easier to read, allowing users to quickly locate the information they need. This is particularly important when dealing with large tables or complex datasets, as it can help users quickly understand the relationships between different elements and identify patterns or trends.

Left-aligned text is also more aesthetically pleasing and can improve the overall look and feel of the table.[2]

Exercise #5

Use a legible typeface

Use a legible typeface Bad Practice
Use a legible typeface Best Practice

When designing a table, selecting a clear and legible typeface is key. Sans serif fonts, such as Arial, Helvetica, or Calibri, are often excellent choices for this purpose. Their less decorative nature enhances readability compared to serif fonts. Additionally, the simplicity of sans serif fonts like Roboto or Open Sans aids in reducing cognitive load, thereby facilitating a better understanding of the content.

Pro Tip: Avoid the overuse of italics or bold fonts.

Exercise #6

Allow users to customize tables

Allow users to customize tables Bad Practice
Allow users to customize tables Best Practice

Tables often occupy considerable space and hold diverse information. To improve users' interaction with tables, allowing customization is a wise choice. Here are some effective methods:

  • Resizable columns: Enabling users to resize columns enhances their ability to view complete, relevant information without constant scrolling. Use a cursor icon that indicates the columns are resizable, making this feature intuitive and user-friendly.
  • Sorting capabilities: Permit users to sort content in various ways, like alphabetically or chronologically, either in ascending or descending order. Indicate sortable columns with upward or downward arrow icons, signaling this functionality.[3]
  • Pinning columns: Some columns might contain crucial data frequently referenced by users. Introducing an option to pin or fix these columns in place with a 'sticky' feature ensures they remain visible, no matter the horizontal scroll extent.

Pro Tip: Adding an option to reorder the columns gives users the power to arrange content as they see fit.

Exercise #7

Allow items-per-page control

Allow items-per-page control Bad Practice
Allow items-per-page control Best Practice

When dealing with lengthy tables that may seem overwhelming, providing users with the option to select the number of items displayed per page can be highly beneficial. This customization empowers them to manage the data volume according to their preference, enhancing their ability to understand and scan the table more efficiently.

Pro Tip: Avoid small item-per-page ranges and offer those that can significantly alter the page view — such as 20, 50, and 100.

Exercise #9

Borders style

Borders style Bad Practice
Borders style Best Practice

Line borders between rows and columns often lead to visual clutter, resulting in a less tidy design. However, horizontal lines can be beneficial in specific scenarios. For instance, they improve legibility when the spacing between rows is minimal, serving as visual dividers. They are also helpful in long tables, where they aid in separating and effectively tracking rows.

Exercise #10

Streamline table operations

Streamline table operations Bad Practice
Streamline table operations Best Practice

Tables should be designed to offer both individual and bulk functionalities efficiently. When it comes to row actions, these should remain hidden until users hover their mouse over a specific row. This approach provides the necessary functionality while saving space and reducing visual clutter.

To facilitate bulk operations, ensure that multi-select checkboxes are always visible. When a user selects one or more checkboxes, corresponding bulk action icons should become prominently visible, signaling the availability of these actions.

Pro Tip: Keep the bulk action icons at the top of the table — a prominent and familiar place for users.

Exercise #11

Use a consistent string format

Use a consistent string format Bad Practice
Use a consistent string format Best Practice

Using a consistent string format in tables is crucial for both readability and data integrity. When formats are inconsistent, like mixing "22.04.2018" with "4.6.2018," it can lead to confusion and errors.

Consistency enables easier data comparison and analysis. It removes the mental hurdle of translating different formats, allowing users to focus on the data's meaning.

Complete this lesson and move one step closer to your course certificate