I learnt alot with this challenge, but first here it is.
[btx_image image_id=”45010″ link=”https://public.tableau.com/views/MakeoverMondayDonaldTrumptimelinesdonemost/TRUMPsTWEETS?:embed=y&:display_count=yes” position=”center” on_click=”link”][/btx_image]
This seemed easy at first, Tableau supports date parsing with a function so after some research I applied the following formula but as you can see from the image it wasn’t parsing the 24 hour clock correctly.
[btx_image image_id=”45013″ link=”/” position=”center”][/btx_image]
A tweet and a few replies later, that was solved. The 24 hour clock needed “HH” rather than “hh”. I also picked up a valuable resource for the future, the date time format syntax dictionary here was pretty robust.
That said that wasn’t the end of it. The last thing to notice was that the tweets were downloaded with the GMT “+0000” time stamp rather than Donald Trump’s most likely region “-0500″. The final calculation below.
[btx_image image_id=”45024″ link=”/” position=”center”][/btx_image]
Rebuilding the visualisation
Apart from being painful, I learnt alot during the process. I lost the viz and wasn’t able to salvage my first attempt at this viz so I had to rebuild the whole thing. In doing so, I came at it slightly differently. Apart from saving often and backing up the file, on my second pass, I made the entire layout modular. Essentially because the layout / design didn’t vary from year to year, I built 2016 first ( also the phone layout) and then simply replicated the outputs and changed sets (used as filters) between sheets.
[btx_image image_id=”45015″ link=”/” position=”center”][/btx_image]
I really pushed hard on the design with this effort. That said the idea / look wasn’t original. I struggled finding an angle so I took to my viz library and settled on a design by Nicholas Felton. Whilst the data he used was different, the visual communication style suited the data and I also saw a challenge in trying to recreate that style in Tableau. I often hear developers from other tools or other technologies such as web design point out that you can’t control design as well as you can in other tools and whilst on some fronts I hear that criticism, it doesn’t rule it out altogether. You just have to make use of what’s there.
Here’s the 2013 Feltron report image I used for inspiration.
[btx_image image_id=”45017″ link=”/” position=”center”][/btx_image]