August 1, 2022
Why I started using Tableau
January 19, 2022
Social Connectedness in the United States
NOTE: The insights you see in this post are based on an article by The Upshot from September 2018. Some of the insights and use cases demonstrated are the same and are shown in Tableau for demonstration purposes.
----------------------------
When I first saw the map that The Upshot created in How Connected Is Your Community to Everywhere Else in America? I was blow away by the simplicity of the map and how easy it is to understand the relationships of people in the United States via their Facebook friendships. The first thing you need to understand is the metric "Social Connectedness Index". You can access the data I used via the same link.
Here's the formula Facebook uses to calculate the index:
From Facebook:
Social Connectednessi,j measures the relative probability of a Facebook friendship link between a given Facebook user in location i and a user in location j. Put differently, if this measure is twice as large, a Facebook user in i is about twice as likely to be connected with a given Facebook user in j.
In each dataset, we scale the measure to have a fixed maximum value (by dividing the original measure by the maximum and multiplying by 1,000,000,000) and the lowest possible value of 1. We also round the measure to the nearest integer.
I was not able to match the color scale in The Upshot exactly, so instead I used a table calculation that ranks each County in the U.S. compared to the County selected by the user.
Close enough for me!
The data has columns for the State/County of the user and for State/County of the friend. To ensure that I was only looking at friends for the County selected, I used Parameter Actions to filter the user to the County and State selected. The rank calculation then only uses the SCI for the friends.
Now let's look through some of the use cases as described in The Upshot.
DISTANCE IS MOST IMPORTANT
STATE LINES ARE BOUNDARIES
MIGRATION PATTERNS
PHYSICAL BOUNDARIES
November 20, 2017
Makeover Monday: Snapchat is tops with American teens
The original viz comes to us from Business Insider:
What works well?
- Catchy title that quickly tells the story of the viz
- Bar charts are simple to understand and they show the pattern well
- Sorting the apps by the most recent value
- Including the axis, otherwise we wouldn't know what the labels mean on the top of the bars
What could be improved?
- The fading colors across the time periods are unnecessary. Include a time axis instead.
- Change the numbers above each bar to percentages
- The color legend doesn't match any of the bar charts and should be removed.
My Ideas
This tells the story simply, but also doesn't show enough of the change over time. Next, I took the original and turned it into a line chart, labeling only the start and the end and also changing the colors to match the official colors of each app.
I think the line charts help make the change and trends much more obvious than the bar charts in the original. From there, I decided to look at the change since the starting period (spring 2015) to make the growth or decline of each app easier to understand. And with that, here's my Makeover Monday week 47.
June 5, 2016
Makeover Monday: Facebook’s Drive Towards Clean & Renewable Energy Sources
My process works like this:
- Evaluate the existing visualisation - What works well? What needs improvement?
- Rebuild the original chart in Tableau
- Capture each version of the chart along the way and indicate what I changed
- Finish with the final makeover
This process also helps me iterate quickly and keep as close to the one hour “recommended” time as possible. Without further ado, here’s my makeover for this week.
November 11, 2015
Dear Data Two | Week 27: Media
From there, I did some quick analysis in Tableau to understand the data before creating the postcard.
When I went into the project for this week, I fully expected Facebook to dominate other consumption methods. Yet to my great surprise, Feedly was far and away my preferred method for consuming stories. I’m not exactly sure why this is, surely it has something to do with the design of their product. In Feedly, I choose the content I want to follow, so it’s much more likely to be of interest to me. Whereas Facebook tends to be a lot of noise and little signal as far as stories and articles are concerned. I don’t look at my LinkedIn and Twitter timelines often, so it’s no surprise that those as so low.
The inspiration for the postcard came from Giorgia’s week 13 postcard about her desires. I wanted to use stars like she did, but I couldn’t find a stencil to use. I went with hexagons instead.
October 12, 2015
Makeover Monday: State of Connectivity 2014
I guess what bothers me most is that this simple bar chart is completely unreadable. I can’t find any countries unless I use a microscope. I assume this was by design, but I don’t see the value in it.
Of course the data was not provided, so I did a quick Google search and found the data in Wikipedia. I then used the InterWorks Web Data Connector for import.io to extract the data. I blended that with another data set I had of country abbreviations.
I started by recreating the original in Tableau.
Ok, I still can’t read it, but I can hover over a bar at least. I wanted something better, something easier to understand, something people might want to quickly explore. I created this three chart layout which includes a map, bar chart (same as the original, but larger), and a slope graph.
I’m not totally sold that this is complete or great, but it’s definitely better than the original. And remember, I timebox myself on these makeovers, so once I reach my time limit I stop. Rules are rules.
September 6, 2015
Dear Data Two | Week 15: Compliments
March 27, 2015
An Analysis of My Commute on Facebook's Dublin/Castro Valley Shuttle
- I’ve been riding the Facebook shuttle to work for almost a year.
- I’ve been tracking my commute time via Swarm check-ins.
- I decided to drive to work yesterday for my last day.
- I got my first ever speed ticket on my way to work.
Anyway, here is my analysis of my commute to work on the shuttle. There are filters for the time of the commute and the schedule. Use the drop down to select various displays: the default is a calendar view and the other views are various dot plots.
Click on the image for the interactive version.
March 25, 2015
Tableau Tip Tuesday: Creating Box Plots in Tableau
How often do I go to the Sweet Stop and when? HINT: It's not as often as you might think.To collect the data, I used Swarm to check-in to the Sweet Stop. Each check-in is logged into Google Sheets via this IFTTT recipe:

I then exported the data to Excel and connected it to Tableau. Download the data here and the workbook used to create this video here (requires Tableau 9).
March 23, 2015
Makeover Monday: Who’s Really Using Social Media in 2015?
Wow! That's quite a bit to digest. So much going on, from the donut/pie charts, to all of the annotations, to the sizing of the pies by overall growth. This infographic has it all.
I recreated the data in Excel, which you can download here, and decided to build a couple of different alternatives because the design choices depend on the question that's trying to be answered. This first version aims to show which social networks are predicted to grow the most in each demographic.

Looking at the data this way, it's clear that Facebook will continue to see the largest growth across all ages. This view also makes the following obvious:
- Younger people are using Instagram
- Older age groups are using Pinterest
- Twitter is a middle of the road platform everywhere, which you could spin as a more diverse audience
The second alternative takes the pie charts and converts them all into more organized bar charts. The question being answered here is how is each app doing?
There's a selector at the top right where you can pick the view you want to see:
- The spread of growth across each app separately
- The growth estimates for each app
Looking at the data this way allows you to compare within a single app, compare to the total and compare across apps. Which version do you prefer? What would you do differently?
Download the Tableau workbook here (requires Tableau 9).
February 24, 2015
Automate the Tableau License Rotation Process
A new year brought a new license key for Tableau. This means having to get every single user swapped over to the new key so that we could get an accurate count of the licenses we're utilizing. This process involved a couple of steps:
- Automatically remove Tableau Desktop from any computer that has not used it in the last 30 days (of course they can always re-install)
- Swap out the old license key with the new license key
I hooked up with the amazing Luke Robles on the Facebook IT Infrastructure team to see if there was a way to automate this process. The first part, removing Tableau Desktop, is handled through some of our internal tools. For the process of rotating the license key, not only did Luke make it work, he open sourced it for everyone to use.
You can grab the code on Github. Note, this code is for Mac installations only. I'll post the PC code once it's ready, but the process itself should be fairly similar if you want to take a crack at it on your own.
January 26, 2015
Makeover Monday: Facebook's Global Economic Impact
In the report, the first graphic that Deloitte shows was this donut chart that explodes into three slanted pie charts:
Some of the most striking problems:
- Using a donut chart to represent parts-to-whole is a bad idea. Read this post by Steve Wexler for a good explanation on why you shouldn't use donut charts.
- There's an implicit hierarchy from the ecosystem to the breakdown of each ecosystem, yet this view goes in the opposite direction by having the regional breakdown above the totals.
- The pie charts, while not 3D are slanted, which distorts their proportions.
- Pie charts are not the best way to compare proportions.
- The title is super small. Looking at this as a stand-alone graphic, it's difficult to understand what the purpose of the graphic is in the first place.
In this version, I attempted to address the concerns I outlined above by basically changing everything to bar charts and rearranging the view. Does this work better? Note that I added some interactivity as well.
January 13, 2015
Makeover Monday: Cristiano Ronaldo is the Most Popular Athlete in the World and it isn't Even Close
I've reviewed a lot of Cork's charts and this one makes many of the same mistakes as his past charts:
- It's incredibly annoying to have to turn my head sideways to read the chart.
- The chart is in ascending order, yet the story emphasizes the descending order.
- The colors aren't distinct enough from each other for me. For example, the colors for Track & Field and Cricket and too similar.
- The chart, on it's own, doesn't capture the entire story that's in the article.
You can download the data here and the workbook here.
November 17, 2014
Makeover Monday: The Facebook Election
There are several things about this infographic that I don't like:
- The title doesn't tell us what the graphic is about.
- The pie charts; simply too many of them making comparisons difficult.
- There's no apparent order to the candidates.
- Candidate names are in ALL CAPS...why?
- The label for the Democrats section is off to the right, why?
- Some of the pies add up to less than 100% and some to more than 100%.

- The title makes it more clear what you're looking at.
- I switched the pie charts to stacked bars.
- The candidates are ordered by positive sentiment.
- The candidates names are easier to read since they're in proper case.
- The labeling for the two sections is aligned.
- Since I'm using stacked bars, the fact that some of the candidates are not equal to 100% is irrelevant.
October 31, 2014
Facebook Jeopardy: Accordion Views
I wish I could expand a section in-lineWe all get frustrated with the inability to scroll synchronously across multiple worksheets on a dashboard in Tableau. At #DATA14, I showed how I address this problem by creating accordion views.
Give it a whirl in the viz below. Click on the Regional Sales tab to see how it doesn't work, then click on the Category Sales tab to see the accordion views in action.
October 23, 2014
Facebook Jeopardy: My extract has been failing for the last 3 days and I just noticed
My extract has been failing for the last 3 days and I just noticed.Anyone that uses Tableau Server can benefit from this hack. Our admin team created this awesome tool that monitors the extract refreshes on Server and sends us notifications once extracts complete or fail. Imagine a life where you have trigger kicking off your extracts and you have a service that monitors your extracts; that's what we have and it freaking awesome!
While we cannot share the code for this (it's built on our internal code stack anyway), the idea and the implementation is quite simple. A couple weeks ago, I was at Tableau HQ and did a deeper dive into this for them; here's to hoping they add this into Server as a standard feature.
October 17, 2014
Facebook Jeopardy: Create a Single Sheet Waterfall Chart in Tableau
I want to build a waterfall chart, but it's taking 9 minutes for my 37 sheet dashboard to render.Waterfall charts are a great way to show system or process flow, but the typical method to do this in Tableau requires you to create lots of sheets and then strategically place them on a dashboard. Jonathan Wehrer on our team created a way to shape his data using the scaffolding technique that Joe Mako talks about often to come up with a method for viewing an entire waterfall chart in a single worksheet.
Here's the demo of the hack from #DATA14 (the hack starts at 17:14 if it doesn't start there automatically):
October 14, 2014
Facebook Jeopardy: Maintain Context by Creating Pop-up Charts in Tableau
I like drilling down, but I hate losing context by switching tabs.One of our internal dashboarding tools is really good at pop-up charts, so Rob Koste on our team came up with this nifty trick for creating pop-up charts in Tableau. In the end, it's pretty simple:
- Create a dashboard
- Create a worksheet that you want to "pop-up"
- Add this worksheet to the dashboard as a floating object
- Create an action to trigger this worksheet to display. The action should exclude all value in order to hide the sheet when the action is deselected.
Give it a whirl in the viz below. Click on a Customer Segment on the upper right chart and see the pop-up in action.
October 7, 2014
Triggering Extract Refreshes in Tableau
September 27, 2014
Facebook Jeopardy: The Video
We squared off in a bout of Jeopardy. Topics included a wide range of pain points in Tableau that everyone faces today and we showed how to solve them by answering in the form of a Hack. The categories were: Sanity Savers, Life Changers, Tipping the Scale and No Assembly Required. If you want to be inspired to find new ways to think about solving problems, then watch this session!
Enjoy and let us know if you have any questions.




.png)


