How to Create Rounded Corners in Tableau
While Tableau is a powerhouse for data visualization, its default sharp-edged containers can sometimes feel a bit rigid. A simple design touch, like rounding the corners of your charts and KPIs, can instantly make your dashboards look more polished, modern, and user-friendly. This article will walk you through several methods to create rounded corners in Tableau, from the dead-simple to the deeply technical.
Why Bother with Rounded Corners in a Dashboard?
Before jumping into the "how," it’s worth asking "why." Aesthetics play a significant role in how users perceive and interact with your data. Sharp corners create a very structured, formal feel, while rounded corners are generally seen as more approachable and modern. This small psychological cue can make a dashboard feel less intimidating and more polished, encouraging users to engage with the data. It communicates a level of care and attention to detail that builds trust in your report.
Three Ways to Achieve the Look
There isn't one "magic button" in Tableau for rounded corners. Instead, the community has developed several clever workarounds. We'll cover three primary methods, each with its own advantages and complexity level:
- The Background Image Method: The easiest and quickest way, perfect for beginners.
- The Dual-Axis Chart Method: A Tableau-native technique that uses calculated fields, best suited for bar charts.
- The Map Layers/Polygons Method: The most advanced and flexible option, allowing you to create completely custom shapes.
Method 1: The Background Image Technique
This is by far the most straightforward and versatile method. The idea is simple: create the rounded container shape you want in an external design tool and then set it as the background image for a container in Tableau.
You can use any graphic design tool you're comfortable with, such as PowerPoint, Canva, Figma, or Adobe Photoshop. For this example, let's use PowerPoint, as it's readily accessible to most business users.
Step 1: Create Your Rounded Shape
- Open a new PowerPoint presentation.
- Go to the Insert tab, select Shapes, and choose the Rectangle: Rounded Corners shape.
- Draw the shape on your slide. You can adjust the "roundness" by dragging the small yellow handle on the shape.
- Set the fill color to the desired background of your chart container (e.g., a light grey or white).
- Remove the outline by selecting the shape, going to Shape Format, choosing Shape Outline, and selecting No Outline.
Step 2: Save the Shape as an Image
Right-click your newly created shape and select Save as Picture.... Make sure you save it as a PNG file, as this format preserves transparency and quality better than JPEG. Save it in a convenient location where you can easily find it for your Tableau dashboard.
Step 3: Add the Image to a Tableau Container
Now, let's bring that shape into your Tableau dashboard.
- In your Tableau dashboard, drag a Vertical or Horizontal container onto the canvas where you want your chart to go.
- Select the container you just added. It's important to select the container itself, not any objects inside it. You'll know you have it selected when it has a solid blue border.
- Go to the Layout pane on the left side of the screen.
- In the Style section, there's a dropdown menu for Background. By default, it's set to "None." Click it and choose Image.
- An options box will appear. Click Choose Image..., navigate to the PNG file you saved, and open it.
- For the "Image Fit" option, select Fit Image or Center depending on how you want it to appear. "None" will tile the image.
Step 4: Place Your Chart and Adjust Padding
Drag your worksheet (your chart or KPI) and drop it inside the container you just styled. The rounded rectangle will seem to disappear, but it's just hidden behind your worksheet. Here’s how to fix it with padding:
- Select the worksheet inside the container.
- In the Layout pane, look for the Padding section. Padding adds space around an item.
- Increase the Outer Padding value. As you click the up-arrow, you'll see the worksheet shrink, revealing the rounded background image of the container behind it.
- Adjust the padding until your chart sits perfectly inside the rounded borders, leaving a nice, clean margin.
Pros of this method: Super easy, highly customizable colors and shapes, and has a minimal impact on dashboard performance. Cons: Requires an external file, and getting the padding "just right" can take a bit of tweaking.
Method 2: Using Calculated Fields and a Dual-Axis Chart
This method is more "Tableau-native" and works wonderfully for creating rounded bar charts. It involves creating a standard bar chart and then layering a circle shape on top of the end using a dual-axis chart to create the rounded effect.
Step 1: Create a Basic Bar Chart
Start with a simple horizontal bar chart. For this example, let's use SUM(Sales) on the Columns shelf and Sub-Category on the Rows shelf.
Step 2: Create a Placeholder Calculation
We need a value to place the circle at the end of the bar. It's simply the same measure as your bar chart.
Create a calculated field called Bar Cap with the formula:
SUM([Sales])
Step 3: Set Up the Dual Axis
- Drag your original
SUM(Sales)pill onto the Columns shelf. - Now, drag your new Bar Cap calculated field onto the Columns shelf, right next to
SUM(Sales). - In the Marks card area, you'll now see three tabs: "All," "SUM(Sales)," and "Bar Cap."
- Click on the SUM(Sales) marks card and ensure the Mark Type is set to Bar. Use the Size slider to make the bars a bit thicker.
- Click on the Bar Cap marks card and change the Mark Type to Shape. Click on the Shape button and select a filled circle.
- Now, right-click the Bar Cap pill on the Columns shelf and select Dual Axis from the dropdown menu. Your circles will now be layered on top of your bars.
Step 4: Synchronize and Clean Up
- The axes will likely be misaligned. Right-click the top axis (the Bar Cap axis) and select Synchronize Axis.
- Adjust the Size slider on the Bar Cap marks card until the circles are the same height as your bars, creating a seamless, rounded end.
- Finally, right-click one of the axes and uncheck Show Header to hide the top axis for a cleaner look.
You now have a beautifully rounded bar chart! If you want to round the left side as well, you can add another calculated field with a value of 0, add it to columns, and create another dual axis with a circle shape near the zero line, pushing that layer to the back.
Pros of this method: All done within Tableau (no external files), very precise control. Cons: Only works for bar charts and can become more complicated if you need to add things like labels.
Method 3: The Advanced Map Layers/Polygons Technique
For those who want ultimate flexibility, you can actually "draw" your own shapes in Tableau using trigonometry and either map layers or polygon mark types. This method is fairly complex and involves generating enough data points to trace the outline of a rounded rectangle.
This approach isn't for the faint of heart and is typically reserved for highly stylized, bespoke dashboards where standard charts won't suffice. The core concept involves:
- Data Densification: Creating extra data points in your data source to use as vertices for your shape. You usually need points for each straight side and a set of points for each curved corner.
- Calculated Fields with Trigonometry: Using complex calculated fields with
SIN()andCOS()functions to plot the X and Y coordinates of each vertex, particularly to draw the arcs for the corners. - Using Map Layers or Polygons: Plotting these vertices and setting the Mark Type to Polygon or using a blank map layer. The
Pathshelf is used here to tell Tableau in what order to connect the dots.
While a full step-by-step is beyond the scope of a single blog post, the brilliant Tableau community has a wealth of resources on this. If you’re feeling adventurous, look up tutorials on Tableau "polygon charts" or "drawing with map layers" by Zen Masters on Tableau Public. This method can be used to create rounded KPI boxes, gauges, Sankey diagrams, and much more.
Pros of this method: Infinite creative possibilities. You can virtually draw anything. Cons: Requires a deep understanding of Tableau's rendering engine and some math. It can also impact dashboard performance if not optimized correctly.
Final Thoughts
Adding thoughtful design elements like rounded corners is an effective way to improve the professionalism and usability of your Tableau dashboards. Whether you choose the quick-and-easy background image method or the more complex dual-axis chart, you’re elevating your final product from a simple report to a polished data experience.
While mastering these design tweaks in Tableau is rewarding, it often highlights how much time can be spent on manual formatting. That's why we built Graphed. Instead of wrestling with containers and calculated fields to get the look just right, you can use plain English to describe the dashboard you need, and Graphed builds it instantly. It lets you focus on the insights in your data, not just the pixels around it.
Related Articles
What SEO Tools Work with Google Analytics?
Discover which SEO tools integrate seamlessly with Google Analytics to provide a comprehensive view of your site's performance. Optimize your SEO strategy now!
Looker Studio vs Metabase: Which BI Tool Actually Fits Your Team?
Looker Studio and Metabase both help you turn raw data into dashboards, but they take completely different approaches. This guide breaks down where each tool fits, what they are good at, and which one matches your actual workflow.
How to Create a Photo Album in Meta Business Suite
How to create a photo album in Meta Business Suite — step-by-step guide to organizing Facebook and Instagram photos into albums for your business page.