At The ASA and British Swimming, we had many swimming events that we wanted to show results for directly on the swimming.org site. The results service was provided by the volunteers at SportSystems, and displayed on www.swimmingresults.org.uk. They did all the work at the venue to capture the swimming results, using many legacy systems based on Visual Basic. Unfortunately as volunteers they didn’t have a lot of time to spend to help us get the results onto our site.
Here’s how their startlists looked,
and here’s a results page.
Fortunately, they were able to give us access to the results, by simply adding a CORS header to their server. This enabled me to be able to pull in any of their start lists and results files by XHR.
Getting the tables to work well at all screen sizes took a lot of iteration. Responsive tables are tricky. Here’s some of the things I tried:
The tables were optimised for the desktop site, using fixed width columns. Below a breakpoint if the content was too wide for the viewport then table could be scrolled horizontally to view the rest of the data. This enabled access to the data at a legible font size. But each table could be a different width depending on the data (e.g. length of club names). Some would scroll, and anothers wouldn’t need to, and it was kind of messy scrolling individual tables.
Adjusting the font size
By adjusting the font size at several breakpoints I could make the data fit well at all sizes. I used shading on alternate rows to contrast them. But it was overly fiddly, and didn’t feel right in the context of the site. Also, some names would flow on to a second row, which broke the vertical rhythm.
This felt too messy and insonsitent.
On tablet the the content became sparse.
Content would wrap on to two lines if there was a long athlete name or club. To stop this happening I combined them into a single column at all screen sizes. At larger sizes I used a single row, with the club name in slightly smaller, grey text. All rows are single line.
overflow: ellipsis is used in the rare cases of a long club name and long athlete name, with a
title attribute added to the club name so that it will show on hover.
To stop the content feeling too sparse on tablet, I added a
max-width to the table and centred it. It makes scanning the results much easier.
There is a single breakpoint that changes the font size to be slightly smaller on mobile, and puts the club name on to a new row. Each result has consistent vertical spacing, making it easy to search for results while scrolling the page.
I was also able to make the table columns spacing consistent accross events, and across start lists and results. It makes all the difference when browsing results that the content doesn’t visually shift. To do this I used a combination of
min-widths. Each column was given a percentage-based width. Trial and error was used to find the minimum width of a numerical column, which can vary across events - short distance events may have shorter times than longer ones.
As shown in the screenshots above, I simplified the navigation from what was a sidebar on the swimmingresults.org.uk site to a single dropdown and toggle between start lists and results. I made the controls stick to the top of the viewport when scrolling down, to enable easy access when browsing. If the user toggles between start lists and results or changes events the page will smooth scroll back up to the top of the results.
The live scoreboard also followed the same design as described above. Columns line up across scoreboard states (start list, in progress and result summary), and also line up with the results on the page below. Just to emphasise why this is important, here’s Christian Robertson from an excellent talk on design:
This is the [principle] that I wish that people had told me on the very first day of design school. It’s line stuff up. That’s it. Everything should be lined up with something unless it has a good reason not to. So even if elements are at the very opposite sides of the screen and they’re almost aligned, line them up. If we don’t do it, then our subconscious brains are spending precious cycles trying to figure out, why are those things not lined up? Does it mean something? Does it not mean something? It’s almost like… I’d compare it to a memory leak in your software, where something’s going on, you’re not exactly sure, but you’re wasting your resources.
So that’s the scorebards and results. I was pretty happy with how clean, accessible and responsive I was able to make the results data. And also visually consistent with the athlete profiles.