Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Definition

  • Zebra table is when there are alternating white-and-grey stripes on a table.

...

Link to step by step slides: https://speakerdeckwww.darkhorseanalytics.com/cherdarchukblog/clear-off-the-table

Comments:




...

Zebra Striping: More Data for the Case by Jessica Enders (10 Sept 2008)

...

Jessica makes the argument, that is striping doesn't harm usability, and if users prefer it, then perhaps its should be included. The third study was to test user preference. Users were asked to rank these tables in order of preference from first to last. 

\

These images could not be presented in a random order to the user in the question.

...

  • The least liked charts are plain and triple striped.
  • The most liked are single striped, double striped, and lined
    • Note: the two-colour option has 15% of people who liked it least. Whereas single-striped and lined has less people like it less


...


Design Better Data Tables by Matthew Ström (3 Aug 2016)

https://medium.com/mission-log/design-better-data-tables-430a30a00d8c


Font: ensure its Lining (not old style).

Image Added


Font: ensure its tabular, not proportional

Image Added


Example the font: Work Sans (link to Google Fonts).

How to enable tabular lining in CSS: CSS-Tricks article.


Alignment

Textual data: left-aligned

Numerical data: right-aligned

Column headers: aligned with the data

No center alignment


Units: include only with the first data point in each column


Rules:

Vertical rules likely unneeded

Horizontal rules allow you to have less vertical space

"Zebra striping is bad."


...

Web Typography: Designing Tables to be Read, Not Looked At | Richard Rutter | 31 Oct 2017

https://alistapart.com/article/web-typography-tables/

Excerpts form the article:


Align to the decimal point: how to with CSS

"The syntax of the new value is simple. You include the alignment character (usually a full stop or comma) in quotes, followed by a space and your desired alignment keyword, which defaults to right if you omit it. For example, the following will centre the data and align to a decimal point as in our prior example:"

td { text-align: "." center; }


"To specify tabular lining numerals, set the font-variant-numeric property with a value of lining-nums and tabular-nums:"

table { font-variant-numeric: lining-nums tabular-nums; 
}


"The equivalent properties for legacy browsers requiring font-feature-settings, use the lnum and tnum OpenType feature tags."

"If you need to specify proportional numerals, set the font-variant-numeric property with a value of proportional-nums. For legacy browsers requiring font-feature-settings, use the pnum OpenType feature tag."


Oblique headings to save space

"You can use a simple CSS translation to achieve the effect. You will also need to absolutely position the headings so the original width of the columns isn’t retained and they shrink to wrap the data instead."

th {
    transform-origin: bottom left;
    position: absolute;
}
th.degC {
    transform: translate(2.58em,-2em) rotate(-60deg);
}
th.degF {
    transform: translate(5.14em,-2em) rotate(-60deg);
}

Scroll the table offscreen

.fig-table {max-width: 100%;overflow-x: scroll;}

"It is important not to set a width on your table; the browser can then compress the table as far as it can before overflowing off the screen. To preserve readability, make good use of non-breaking spaces and white-space:nowrap to limit the amount the data wraps in the cells. It’s better to have a readable table that requires scrolling than an unreadable one which doesn’t."


...

Responsive Tables


Examples of Tables


Filament Group

http://filamentgroup.github.io/tablesaw/demo/modeswitch.html