guest post by Jenny Lyons
One of the most common ways to analyze qualitative data is through thematic coding. Thematic coding allows us to move beyond the visualization of word or phrase frequency, like in a word cloud, and start to examine attributes and stories that emerge from the data. The New York Times has some of the best interactive qualitative visuals out there. Check out this example. Its clickable and lets you take a deeper dive into the candidates you are most interested in. These are awesome and beautiful but the reality is that most of us do not have the budget or expertise to build something like this. What if I told you I found a couple solutions? I am going to show you how to build interactive heat maps in programs I guarantee you have on your computer right now (PowerPoint, Excel, and free Adobe).
Static heat maps are super easy to make. Usually, you have your themes across the top of the table in columns. Then, you have respondent interviews in each row. You then figure out a way to code each interview per theme. You could do something like: “met/partially met/not met” or “Important/kind of important/not important.” In the example I am going to showcase today, I used “love it/ehhh/yuck.”
Let’s say I did some interviews with researchers asking them about ways they visualize qualitative data. I asked about different chart types and coded their responses on whether they love it, feel ehhh, or if it is yuck.
This static heat map does a good job of taking all that complex qualitative data and simmering it down, but it’s never enough. It boils all my rich, meaningful data into three vague buckets. I find myself wanting more: why do they dislike it? What makes a certain chart type so great? Of course, the answers to these questions can usually be found in the text-heavy report that accompanies this visual. Right now, I am not feeling very motivated to read the report. We need to do a better job at drawing our audience in by engaging them with the raw, meaningful data that underlies this visual. We need some of the New York Times hipness. I am going to show you three ways to make a heat map interactive, where background quotes behind each color-coded cell pop up. I am going to do this in PowerPoint, Excel, and Adobe Acrobat (the free version). All three carry their own unique advantages and disadvantages. Note: I used the same design in all three mediums. This is where we are headed:
PowerPoint Interactive Heat Map
- Design the structure of your heat map structure, all greyed out.
Do not feel intimidated by this design. In PowerPoint this is made with textboxes and square shapes. It is just a bunch of squares all aligned. When making this, the align tool in PowerPoint will be your best friend. If you are not familiar with that tool, then check this out and your mind will be blown (no more endless nudging).
- Once you have your basic structure down, we need to name our legend objects. To do this, start by clicking on your “Love it” square. Go to the Format tab and under the Arrange section, click on Selection pane. In the window that pops up, the rectangle shape selected will be highlighted saying “Rectangle #”.
Double click on the name “Rectangle 69” and rename it “Theme 1” or “Love it.” You can name this whatever you want, but you just need to remember the name for a later step. Repeat this step for all legend squares.
- You want to make sure all those grey boxes are grouped into one object. Select the entire object (all grey squares), copy, and paste it. Align it exactly on top of the other grey squares, so when looking at it, you cannot tell there are squares piled on top of one another. Ungroup the grey ones on the top. First start with the Love it squares. Color code all of them dark blue. Insert a textbox with an active title at the top. Make the background of the title text box white.
Now, select the title and dark blue “Love it” squares and group them.
- Next, you will do the same thing for the Ehhh theme. You must insert another textbox title overtop of the Love it title you just made. Make sure the background of the Ehhh title text box is white so that it completely covers the Love it title. Group this text box title and the medium blue squares together.
- Do the same thing for the last light blue group. Note, make sure all the textboxes for the titles all have a white background and are the same exact size. They should be layered on top of one another.
- Now, click on the dark blue Love it squares/title group and bring it to the front. Once it is to the front, while selected, go to the Animations tab. Click “Appear” under Animation. Then under the Advanced animation, click on Trigger, “on click of”, and select “Love it/theme1.”
- Then, while this group is still selected, you will select “Add animation” and click on “Disappear.” Then under the advanced animation, click on Trigger, “on click of”, and select “Love it/theme1.” That tells PowerPoint that when the “love it” legend square is clicked, the Love it heat map group will appear, and when it is clicked again it will disappear.
- Repeat steps 6-7 step for Ehhh and Yuck. Make sure you link them to the correct trigger button.
- Test this out! Go into presentation mode and follow the instructions. Click on the theme legend Love it. It should do this:
Each time you click on a legend, it gets added to the heat map. You can unselect it by clicking on the legend button again.
- Now, we need to add the quotes in the background of each square. To do this, we are going to be using the hyperlinks feature in PowerPoint. These steps will need to be repeated for each square inside the heat map:
Right click on just one square. Go to Link- Insert link. This box pops up:
Make sure “place in this document” is selected under link to on the left. Then select the slide where your heat maps lives (probably slide 1). Once that is selected, click on the “ScreenTip…” button in the upper right-hand corner. Type your quote here. (“I love theme maps so much, they help organize all my data and make it easier to comprehend and make meaning.”)
Now, when you are in presentation mode, you hover your mouse over that square and the quote pops up- yay!
- There are a couple more things I recommend doing to make this document more user-friendly. As you can tell, the only way to make this interactivity work is if you are in presentation mode. When you are in presentation mode, do you see how if you click on the three legend buttons it all works well, but if you accidentally click on one of the heat map squares, it goes to a black “end slideshow” screen. We don’t want that to happen. We want people to be able to play around in here. To make the screen not go black, go to the Transitions tab at the top. Over on the right under timing, do you see where it says Advance Slide and there is a check by “On Mouse Click”. Well, unselect that.
There are a couple of other things that make the usability of this file challenging: 1) people can edit this. When they first open the document, it is in the edit window, not presentation mode. And 2) It is annoying that you have to instruct people to put it in presentation mode. Some people (non-techy folks) might get confused. We can avoid these two issues by saving this as a different file type. Only do this step when you are 100% done editing. Go to file and save as. Under the file type dropdown, change it to “PowerPoint 97-2003 Show (*.pps)”. This will save it as a presentation-only document. The moment your client opens the file, it will be in that interactive mode and they will be unable to make edits.
Cool, right!? I will give you a moment to get over the wave of awesome that I hope you are feeling right now. Let’s talk pros and cons:
- We can make buttons that show/hide parts of the heat map
- Our titles are interactive depending on the group of the heat map we show
- Quotes are easy to add as hover text
- The quotes are kind of boring. You cannot edit font, typeface, or color. Also, you cannot add photos next to the quotes.
- The hip interactive features do not transfer when you PDF the file
The best time to use this method is if you are building a visual 1-2-page document, dashboard, or infographic and you want to include an interactive heatmap. Yes, the final product will not PDF, but you can save it in the secret .pps way to make it un-editable and immediately jump to the presentation/interactive mode. This technique can easily be paired with static text, statics visuals, or even other interactive visuals using the same technique.
Excel Interactive Heat Map
- Design your heat map in Excel. This is the same design as the PowerPoint one except the matrix is not made up of square shapes, it is composed of cells. Edit the height and width of your cells to get them the shape you want. Add a thick white border around the cells for the matrix. Ta da! A nice heat map.
- Now, design a quote+picture combo. I designed these in PowerPoint. There should be an image/quote per matrix square. Here is my Love it example:
- Back to Excel, you are going to click on the cell where you want to insert a quote. With the cell selected, go to the Review tab. Under Comments, select “New Comment.” A light-yellow box pops up. Click in the comment box. Then, move your cursor to the border of the box until it looks like crossing arrows, then right-click. You should see an option for format comment.
- First, navigate to colors and lines. Change the border color to none. Under fill color, choose fill effects. In the new window, click on picture, select picture, and then find the one you saved in your file. Make sure you check the lock aspect ratio at the bottom of the window so the picture doesn’t warp.
- Now, with the comment box selected, drag the corners of the comment box to your desired size.
- As you can see it probably says, “Your Name:” so let’s get rid of that. Click on the cell where the comment is, go to Review and edit comment. Now just double click in there and delete all the text.
- Now, you’re done! Repeat this step for every cell. When your mouse hovers over that cell, this is what it looks like (when I hover over Heat maps,a):
This Excel interactive heat map is fun and versatile!
- Quotes are easy to add as hover text and they are visually engaging. We can add color, font, and typeface to match our branding and heat map color codes. We can also add photos.
- The comments to not transfer to PDF.
- There are ugly red triangles in the upper right-hand corner of every cell with a comment. If it bothers you a lot (like it does me) you could manually insert little colored squares overtop of them in the upper right-hand corner of the cell.
The best time to use this technique is when you want to share this as a standalone visual. You can lock the Excel sheet so no one can edit and have people explore your data and get to know the themes on a deeper level. This is also an easy addition to a dashboard created in Excel.
PDF Interactive Heat Map
When creating a PDF interactive heat map, start by getting it all designed and 100% ready to go. I made the version in PowerPoint. Then, just save as a PDF.
- Open the heat map PDF. Make sure you have all the quotes for each square in the matrix ready to copy/paste into the PDF. At the top of the tool bar, you will see the “add sticky note” button. Click on that.
- Click in the middle of the matrix square where you want to place a quote. When the comment box opens, right-click and select Properties. For the icon, make the color white and the opacity 0%.
- Under the general tab, for author remove your name and leave it blank. Select ok. Now, paste in your Quote in the comment box and click post. You can edit the text in Word to be whatever font/size you want and it will keep the font when you paste.
- Now, right-click on the comment box again and lock it.
- Repeat this step for all the squares in the matrix. When finished, you should be able to hover over the square and the comment will pop up!
- Done! This is a simple, easy way to embed raw data quotes in your finalized PDF deliverable.
The PDF interactive version is the one with the least frills. You can’t add pictures or interactive buttons, but since most of our deliverables are sent to our clients in PDF versions, this technique is extremely applicable.
Interactive heat maps give us both a visual synopsis of qualitative themes and allows us to highlight our raw data without bogging down the visual. We get more depth and interactivity. Try these formats out and let us know how it goes.
We have video instructions on this process in our Academy and Graph Guides programs. Learn it in Tableau or R, too!
Learn in the Academy!
You can find step-by-step instructions on how to make 60+ awesome visuals in my Evergreen Data Visualization Academy.
Video tutorials, worksheets, templates, fun, and a big-hearted super-supportive community. Learn Excel, Tableau, R or all three. Come join us.
Enrollment opens to a limited number of students only twice a year. Get on the wait list to be notified of our next enrollment window.
Master Dataviz with Graph Guides!
Our newest program, Graph Guides, is a custom-built, year-long sprint through 50 Academy tutorials.
When you enroll, we’ll assess your current data viz skill set, build you a customized learning path, and hold your hand as you blaze your way to new talents.
We only open enrollment to 12 students at a time. Get on the wait list for a heads up about your next chance to gain a competitive edge.