November 25, 2024
Perfect Labels For Rounded Bar Charts In Under 2 Minutes
Labeling a rounded bar has always been tricky. You might manually drag the labels, try to play around with the alignment and more, but still, you can't get the labels perfect.
No more! In this Tableau Tip, I'll show you:
1. Why standard labels don't work
2. How to build a rounded bar chart
3. How to perfectly align the labels
September 12, 2023
#MakeoverMonday Week 37 - First time home buyers in the UK are being shut out of the market
December 6, 2022
#MakeoverMonday Week 49 - How good are Americans at perceiving demographics?
- Barbell chart with dots on the ends and a line connecting them
- Coloring the lines by the larger value
- Choosing the colors
- Formatting the view (except the labels)
- Labeling the dots/ends of the lines; this took several iterations on the calculations
- Creating the color legend as headers; I had to use reference lines, turn on totals, move the totals to the top, then work on the formatting to get them close. They still aren't perfect.
- Creating the horizontal reference lines; this required me to create a dummy axis
December 8, 2021
#WOW2021 Week 45: Customer Purchasing Habits (RFM Analysis)
September 6, 2021
#MakeoverMonday 2021 Week 36 - How Has American Support For Abortion Changed Since 1975?
Despite the massive setback to women's right in Texas, less Americans are anti-abortion than in 1975. Now maybe if the barbaric dinosaurs in Congress in Texas came into the 21st century, they'd finally realize women are our equals and we shouldn't control them. It's all very, very disgusting. They should be ashamed, but of course they're not. In fact, they are quite proud of what they "achieved".
November 9, 2020
#MakeoverMonday Week 45 - Global Share of Nintendo Switch Software & Hardware Sales
For #MakeoverMonday week 45, we were analyzing the software and hardware units sold across several regions, as defined by Nintendo itself. The data was pretty simple. I started by doing some basic data prep to simplify the names of the fields and to pivot the data to make it easier to compare the years.
In this video, I will first review the initial visualization and talk about what works and what does. I then iterate through several methods for visualizing the data, hoping to find one that works well with this data set. With feedback from the viewers, I was able to create a bar chart that compares the percentage of global units sold of software vs. hardware for Nintendo.
I showed several methods for visualizing the data:
- Line charts (several versions)
- Stacked bar chart
- Side-by-Side Bar
- Tables
- Scatter plot
- Connected scatterplot
Resources:
- Data Set - https://data.world/makeovermonday/2020w45-dedicated-video-game-sales-units
- Final visualization - https://bit.ly/MM2020W45
- Tableau Color Palette Generator - https://color.tableaumagic.com/
- Colors from Image Tool - https://html-color-codes.info/colors-from-image/
- ASCII character reference - https://jrgraphix.net/r/Unicode/27F0-27FF
August 25, 2020
#TableauTipTuesday: How to Add Dimension Labels Above Bars in a Horizontal Bar Chart
November 4, 2018
Makeover Monday: America's Aging Population
The original visualization is from the US Census Bureau:
What works well?
- The title above the charts tells us the insights in the data. This is a very effective technique.
- The colors work well together.
- Labels for the ages are well-placed and colored to represent the lines
- Labeling the start and end of the lines
- Hiding the axis but still leaving the axis title
- Including the note about the 2016 data
What could be improved?
- Remove the title at the very top, the entire blue section
- Make the footer less prominent; it's competing with the viz for attention when it should be secondary
- Kill the bar chart; it looks strange have axis labels for every five years, but then only showing the data for a set of years
- Remove the dots on the lines except for the start, end and where the lines cross
- Remove the vignette shading behind the charts
What I did
- I like the idea behind the line chart, so I used that as my starting point.
- I pivoted the data by age, then created age groups that match the original (under 18 and 65+).
- I wanted to compare ages and origins for the two age groups to see if the crossing of the populations is consistent (spoiler, it's not).
- I wanted to add focus to the year the lines cross. I did that by adding a black dot on that year and by including a reference line.
- I kept the labeling of the start and end of each line.
- While the population in total gradually shifts towards the older generation, the split between hispanic and non-hispanic does not follow the same pattern.
- Older hispanics will likely outnumber hispanic children between 2070 and 2075, whereas non-hispanic older people will outnumber non-hispanic children much sooner.
- The female population is shifting much more quickly to the older generation than males.
October 12, 2018
Workout Wednesday: Top & Bottom Highlights
The Easy Parts
- Creating the small multiples layout
- Limiting the data to 2017/2018. I chose to do this via a data source filter so that I didn't have to worry about adding the date field as a filter and add it to context.
- Creating the line chart
- Formatting the axis properly
- Creating the calculation needed for the shading (I approached it by doing one of the top calculations, then one of the bottom calculations, then the combined)
- Creating the total sales text at the top-center of the chart
The Biggest Challenge
- I knew I had to calculation right for the label for the latest month, but for the life of me I couldn't get it working. I felt like I needed another axis for the mark, then it dawned on me like a slap in the face how simple the solution is.
February 28, 2018
Workout Wednesday: The MLB Diversity Gap
Suddenly a possible solution popped into my head (I figured it out by hovering again and again over his viz). I'm not going to give away any spoilers. Here's my solution if you get stuck...but give it a solid effort before you look at someone else's solution.
Good luck!
October 11, 2017
Workout Wednesday: State to City Drill Down
As a hint, in Chris' version, all cities were in the initial view, but for each State, all of the cities in that State would display the same value until you click on the State. The drawback of this method is that displaying mark labels (i.e., State names) only looks decent when a State only has sales in a single city. I want to show the labels for all States that have enough space to display it. In other words, the initial view should show only one dot per State, then when you drill down, you will see one dot per City in the selected State.
Before you start, I would highly encourage you to interact with the viz below to see how the drill down works.
Using this data source, here are the requirements:
- Create a scatterplot of sales vs. profit.
- In the initial view, you should see only one dot for each State. If you do this part right, you will have 48 marks in the view.
- Label the dots for the States in the initial view where the labels fit (using Tableau's automatic labelling).
- If you click on one of the States, then the view should automagically drill down to the cities for the selected State.
- If you choose more than one State, then the drill down should be disabled.
- Once you are in the City view, you should see one dot for each city. For example, if you click on Washington, then the City view should have 40 marks (one for each City).
- At the City level, the user should be able to click on the white space in the chart to go back to the State level.
- At the City level, no cities should be highlighted.
- You must match the tooltips. They show the State, Sales and Profit when each dot is a State. The tooltip shows the City, Sales and Profit when each dot is a City.
- The title and subtitle should change depending on if the view is State level or City level.
- Each dot should be colored by profit ratio for the State or City.
- The view should be 600x650.
Be sure to tweet an image of your work and a Tableau Public link and tag @EmmaWhyte and @VizWizBI. Good luck! I guarantee you'll learn a lot this week.
August 16, 2017
Workout Wednesday: How has your home price changed?
First, you can find the housing index data here. You will need to do some minor data prep. Curtis has some hints in his post if you get stuck.
REQUIREMENTS:
- The data is displayed as the monthly percent change in the house price index based on the date chosen above the chart.
- The State selected must be highlighted in the greenish color (#3B6F84).
- The US average must be highlighted in black.
- The most recent value should be shown on the end of the selected State and the US average.
- All States must be in the view. All States that are NOT selected should be thin and grey.
- Include a reference line for the month selected and include a dot at that point.
- Match all of my titles and formatting. Note that the chart title is dynamic.
- Match my axes.
- Match the footer (except replace my name with yours).
- Be sure to tag Curtis (@Harris7Curtis) so he gets credit when you publish it to Twitter.
May 31, 2017
Workout Wednesday: Wine Tasting Is Harder Than It Looks
- Dashboard is 800*1000 pixels
- Re-create Emma's dashboard as close as you can get it
- Use a separate sheet for each of the red and white wine heatmaps and scores
- The scores should be formatted so when it is a whole number no decimal places are shown.
- When the score has a half point, it should be shown to 1 decimal place.
- Highlighting the Taster in the reds or whites also highlights them in the other chart
Ok, not too bad! They layout itself was pretty simple. It's just squares. To color them separately, since there is only one Score field, I created two calculations.
I made both of them discrete dimensions and assigned the colors using the color picker to choose the colors from Emma's viz. I then duplicated both of them and assigned alias names to use for the color legend of each chart.
For the score formatting, all I did was create a simple calculation that first summarizes the score, then changes it to a string, then determines if it has a decimal and if so, return it rounded to one decimal and converted to a string, otherwise return it rounded to zero decimals and convert it to a string.
I'm going to have to download Emma's version to see how she did it. We tend to take very different approaches. With that, here's my Workout Wednesday Week 22. Click on the image for the interactive version.
May 16, 2017
Tableau Tip Tuesday: Using the Modulo Function to Conditionally Format Numbers
I want to show one decimal point on the value of my mark labels -- except when the digit following the decimal point is zero. So, in the example below, I'd like to make the label for 2013 show as "57%" rather than "57.0%."
Great question! I told Jonathan that I disagree with formatting the numbers differently, but I also wanted to help him find a solution. The answer is two calculations and the modulo function.
In the final version you see below I've included a third calculation to highlight the bars that a zero following the decimal point. This is merely to make it easier for you to see. I didn't show this in the video. Download the workbook to see the solution.
Enjoy!
March 28, 2017
Tableau Tip Tuesday: How to Use One Parameter With Unlimited Number Formats
In this week's video, I show you how to use a single parameter with unlimited number formats. This is particularly useful when you have a single chart with a single measure and you want you user to be able to swap out the measure, yet retain the number formatting for the measure (e.g., currency vs. percentages).
March 21, 2017
Tableau Tip Tuesday: How to Create a Full Year Heatmap Calendar with Month Labels
March 15, 2017
Workout Wednesday: Full Year Calendar with Month Labels
I’ve still yet to come across a really good, scalable solution for adding in the month names.Kevin sent this to me several weeks ago and I came up with this solution, which is your challenge for this week. Create a heatmap calendar that includes month names. Download the data for this challenge here. You must match everything: the titles, the colors, the fonts, the filter, all of it. The final dashboard size is 600x800.
TIP: You could start by downloading Kevin's workbook. This will give you the LOD that he used for the weeks. Good luck!

