VizWiz

Launch, grow, and unlock your career in data
Showing posts with label tiles. Show all posts

October 17, 2023

The End of an Era: Watch Me Viz's Decline Unveiled

No comments

That's a wrap. Watch Me Viz has retired, for good. 

This week's data was about the performance of all of the WMV livestreams. There was some incredible viewer participation, which ultimately led to this viz that explains why WMV should quietly disappear.

Check out the livestream below.



March 3, 2018

Creating Runkeeper Tile Maps with Alteryx & Tableau

No comments
A couple weeks ago, I demoed how to create tile maps of Runkeeper runs using Alteryx and Tableau. You can watch the recording here; I was the final speaker if you need to fast forward.

In this post, I'll detail how I created the tile maps and share the workflow and visualizations. The inspiration for this project comes from Marcus Volz and his great github tutorial on how to create small multiple visualizations of your Strava runs, which I wrote about here. This was the viz that I created based on his R code:
When I visited The Information Lab France in January, we decided that we would try to replicate Marcus' process with Alteryx and Tableau because we wanted it to be an interactive visualisation, whereas Marcus' creates a static image. This process should work for Runkeeper, Strava or any fitness app that uses GPX files.

To get all of your routes from Runkeeper:

  1. Login to Runkeeper
  2. Go to "Account Settings" from the gear at top right of the screen
  3. Choose the Export Data option on the left
  4. Select the date range
  5. Click on Export Data
  6. Unzip the files

To get all of your routes from Strava:

  1. Login to Strava
  2. Select "Settings" from the main drop-down menu at top right of the screen
  3. Select "Download all your activities" from lower right of screen
  4. Wait for an email to be sent
  5. Click the link in email to download zipped folder containing activities
  6. Unzip the files

I actually don't follow either of these methods. I pay a small yearly fee for a service called Tapiriik that allows you to sync your fitness data with Dropbox.


ALTERYX WORKFLOW

    Since all of my files are in one place, this makes getting them all into Alteryx with a single input easy using a wildcard input. I've documented my workflow and you can download it here.


    Steps

    1. Input all of the files using a wildcard match for 2018 runs only.
    2. Assign a unique number to every row. In these files there's a GPS reading every second. Having a unique number makes creating the routes easier because you know the sequence.
    3. The next few steps are the magic part. These essentially give every route the same size as a square. We need them all to be the same size regardless of the actual geographical area covered.
    4. Create points for each GPS points and connect them to create a polyline. Do this for both the route itself and the boundary
    5. Calculate some summary stats for each run.
    6. Bring them all back together.
    7. Export as a SHP file.

    TABLEAU VISUALIZATION

    Once the shapefile is done, all you need to do is connect to it in Tableau. I created two visualizations. Click on the images for the interactive versions and to download the workbook.

    1. Small Multiples 

    Like Marcus' viz, I created a view that spaces the runs based on the number of runs in the view. For example, in February, I recorded 22 runs, so I get a view with 5 rows and 5 columns. Each square has a route from the first run on the upper left to the most recent run in a Z pattern. There are additional details about each individual runs available on hover.

    This view uses table calculations to determine the spacing.



    2. Calendar View

    The calendar is much simpler to create since it doesn't need any table calcs.

    1. Double click the Geometry field to get a map
    2. Filter to a single month
    3. Place Weekday on the Columns
    4. Week on the Rows
    5. Add information for tooltips
    6. Add total monthly mileage to the caption
    7. Resize the rows and columns to fit the window

    LESSONS LEARNED

    I'm nowhere near an expert in Alteryx. I know I can improve if I practice more. Here are five lessons learned I learned that I will be taking forward:
    1. Leverage the strength of your team to help you solve a problem and to help you learn.
    2. Alteryx makes creating and working with spatial objects incredibly simple.
    3. Prepping the data exactly as you need it in Tableau will make the visualization process much faster.
    4. Data prep processes in R and Python make for great data prep exercises in Alteryx.
    5. Fail fast and iterate quickly. Both Alteryx and Tableau allow you to try lots of things quickly without fear of breaking anything. Try something. If it doesn't work, try something else. Keep going until you've nailed it.

    June 22, 2017

    Makeover Monday: Tiled Heatmap of U.S. Air Quality Levels

    No comments
    Yesterday I was at Exasol HQ trying to help them with their hackathon. I wasn't able to access their data for the hackathon, so I decided to do some testing for them with this week's Makeover Monday data set.

    I was very interested in looking at state-level air quality and built lots of heatmaps and originally built them in a single worksheet using table calcs to sort out which states go in which columns and rows.


    This didn't work for me, though, because it only helped me see the states alphabetically. It's much more intuitive if they are displayed geographically. An idea popped into my head...

    I wonder if I can combine a heatmap that looks at daily max reading by state across all years with a tile map.


    I quickly went to Matt Chambers' great post for how build tile maps added the secondary data source, blended it by state and replaced my crazy table calcs with a simple tile map view. What a fun exercise! I learned a ton and feel like I created a much more intuitive view. Does anyone recall every seeing a tiled heat map? Have I come up with a new chart type???

    Click on the image for the interactive version. Note that the viz might be slow to load as it's displaying about 460,000 marks.

    April 8, 2016

    Abortion Regulations - State by State | Hexmaps in Tableau

    5 comments
    Click the image to interact

    Hexmaps…I’ve seen so many great examples of them created in Tableau (and other tools) like this one from Matt Chambers, this one from Ben Moss or this one from Kris Ericsson. Then I saw an article on the Washington Post about abortion regulations that included this series of tile maps...

    Click the image to go to the original


    …and thought this would look much better a series of hexmaps. In addition, I’d never created one before and I wanted to learn how. Fortunately Matt Chambers wrote a blog post for how to create them. I downloaded his workbook, copied the data into Excel, and add the columns I needed. I’ve saved an Excel template you can download here and all you need to do is add the columns you want to use on the color shelf in Tableau.

    For my version, I wanted to create a small multiples view with a matrix that shows all states and their regulations in a table you can click to highlight. Special thanks to Robin Kennedy and Matt Chambers for their feedback!!

    Two vizzes in one day, two new techniques learned. I’ll chalk it up as a fabulous day!