Week 8: Hex-tile (or Honeycomb) Map - Tableau | DS23

by Auguste Navickyte

This week, I was teaching mapping and spatial calculations as part of the LWDSL (Learn what the Data School learns) series. I have actually learnt a lot whilst prepping for the session myself! One of the things that I finally understood was how to do was a hex-tile map (for the US). It is especially useful if we want to eliminate the chance of overlooking some states as they might "disappear" from the map simply because of their size. So how do we do it?

  1. Have a dataset with the US state names or abbreviations you wish to visualise
  2. Connect this dataset with the one that attributes column and row coordinates for each of the state (download from here; the link was borrowed from tableau.com). Make sure you do a left join, where your main dataset is on the left and the one with the coordinates - on the right. The common field will be either state names or abbreviations
  3. Bring field "Column" to columns (average them) and "Row" to rows (average them, too)
  4. Add hexagon image to My Tableau Repository -> Shapes (download the picture from here; the link was borrowed from tableau.com as well)
  5. Change type to Shape (on the Marks card) and select the hexagon as your preferred shape
  6. Drag field "Abbreviation" to detail and to label, turn on the label and let it overlap
  7. Fix the axes until it looks decent - I have chosen X axis to be from 0-15 and Y axis from 1-9
  8. Format the rest of your map as you wish - and voila!