IMAGE IN BAR CHART – NEW LEVELS OF TABLEAU VISUALIZATION!
The following blog depicts the technique created by Alex Jones (@jusdespommes) blog about “How to… create a chart from an image in Tableau!”.
Show/Hide Containers
Tableau 2019.2 has introduced an option to show/hide containers (when the container is a floating type). Many experts have come up with different use cases such as hiding and showing the filters, parameters, or even a worksheet with a click which occupies much space in the dashboard using this feature.
This feature is pretty simple to use and comes in handy when we want to save some space in our dashboards.
How to Swap image in Bar Chart?
1.Create a simple bar chart in Tableau 2019.2. We have used “Top 5 Grossing Games Worldwide 2018” to create a bar chart and sorted based on the revenue.
2.Remove the label, header and export the worksheet to image. Worksheet > Export > Image (Choose ‘view’ in Export Image dialog box)
3. Open Photopea, which is an online photo editor and open the saved worksheet image.
File > Open > Image
4. Now, download 2 images from online which we are going to use for bar chart.
5.Copy and paste image 1 on top of the bar image. Now we will be having two layers of images one above another.
(We can even re-position, crop the image if needed)
6.Choose ‘Magic Wand’ from the tool bar at left side. Click on the image, and we can see the selection in dotted lines.
7.Choose the top layer (image 1) and click delete. Now we can able to get the below image.
8.The background of the image needs to transparent. So, delete the below layer (bar chart image) using delete icon at the bottom right corner.
9.Now, choose File > Export as > .PNG to save the image as .png format (this will retain the transparent layer)
10.Repeat the same steps with image 2 to get the same effect.
Note: Keep the same resolution and image size as the previous one.
10.1.Now, open Tableau Desktop and bring in the image as floating type.
11.We have to position the bar chart over the image. To make it easy, decrease the opacity of the bar chart and give border.
12. Add labels and tooltip to the bar chart.
13.Now the dashboard looks like this. We can able to hover on bars to see tooltip.
14.Now, comes the trick of using ‘Show/Hide Containers’ to swap image. Bring a container to floating and add image 2 to the container. (Set the padding to zero)
15.Next, we have to position the both images and the bar chart one above another. To make it easy, use x, y axes and size w, h to position accurately.
Note: Make sure the position of the 3 objects (Use Floating Order) follows the below order as all are in floating.
- Image 1 (Below layer)
- Image 2 inside container (Middle layer – where show/hide option is to be used)
- Bar Chart (Top layer)
16.Choose the container and right click at the top right corner. Enable ‘Add Show/ Hide Button.’ Now we can see a floating button.
17.We can customize the button by adding image and tooltip to buttons.
18.We have used below customized images (created with PowerPoint) for buttons to swap between 2 images.
19.Another simple trick is that we can control the transparency of the image by adjusting the opacity of the bars.
20.Take a look at the final dashboard….
Related Articles
Key Trends in GenAI: Be Always in the Know
The latest GenAI trends can take your business by storm, bringing significant transformations, improvements, and competitive advantages powerfully as follows:1. Hyper-personalized marketing: Marketing That Knows You Better
Imagine a world where every ad you see feels made just for you. Generative AI is making that happen by analyzing tons of data to understand your likes and dislikes. Businesses can now tailor their campaigns so perfectly that it’s almost spooky—in a good way! For example, AI can track your browsing history and suggest exactly the product you didn’t know you needed. It’s like having a personal shopper in your pocket. Plus, in education, platforms use AI to adapt lessons based on how well students do, making learning more effective and fun.2. AI-driven automation: Getting Stuff Done Automatically
Let’s face it: no one likes spending hours on repetitive tasks. That’s where generative AI comes in. By 2025, it’s expected to automate up to 30% of business operations. Think about supply chain processes, scheduling, or managing employee requests—AI can handle everything. For instance, companies are already using AI to speed up inventory management or even predict what products will be in demand. And customer service? AI-powered bots can answer questions faster and better than ever.3. Conversational AI: Chatbots That Understand You
If you’ve ever had to deal with a clunky chatbot, you know how frustrating it can be. But conversational AI is leveling up. By 2028, virtual assistants and chatbots will feel more like talking to a helpful human than a robot. They’ll be able to understand complex questions, respond in natural language, and even handle customer complaints like pros. Industries like healthcare and banking are already using this to make their customer service faster and more efficient. No more waiting on hold for hours!4. Multi-Modal GenAI: AI That Gets All the Details
Generative AI is becoming more intelligent by combining different types of data—text, images, video, and even sound. This is called multi-modal AI, and it’s a big deal. Why? Because it can look at all these inputs together to give a complete picture. For example, retail companies use this technology to analyze how customers behave online and in-store. It helps them precisely recommend what customers want, whether a new outfit or a better grocery deal.5. AI & Healthcare: A Big Boost for Healthcare
Generative AI is saving lives. Seriously. It’s helping doctors create personalized treatment plans by analyzing patient data, medical history, and test results. AI is also speeding up research, making discovering new drugs and treatments easier. More than 75% of healthcare companies are exploring AI. This means faster diagnoses, fewer errors, and more time for doctors to focus on their patients.6. AI and Cybersecurity: Fighting Cybercrime Like a Pro
With the rise of digital threats, cybersecurity has become a top priority. Generative AI is stepping in to help by detecting suspicious activity before it becomes a full-blown attack. By 2027, AI-powered systems will drastically reduce false alarms, making it easier for companies to stay safe.7. Ethics and Regulation: Keeping AI Ethical
As AI gets smarter, questions about how to use it responsibly are growing louder. Governments and companies are working to create rules that ensure AI is fair, safe, and doesn’t harm anyone. For example, the EU focuses on making AI ethical and transparent, while the U.S. takes a more flexible approach to encourage innovation. If you’re a business owner, now’s the time to ensure your AI practices are legal and ethical.8. Decentralized AI: Better Privacy
What if you could use AI without worrying about your data being misused? That’s what decentralized AI aims to do. Using blockchain technology keeps your data private and secure, giving you more control over its use. This is especially important in sensitive industries like healthcare and finance.9. GenAI and Business: Bringing Big Wins
In the business world, the true potential of generative AI lies in fine-tuning models to meet specific needs. By 2025, enterprises will hold the reins of AI, leveraging it to drive innovation. Success won't come from simply having vast amounts of data. It will hinge on adapting AI models to work seamlessly with that data. Customized multimodal LLM fine-tuning and evaluation datasets customized to specific use cases enable precise model training. This empowers businesses to unlock the full value of their data and maintain a competitive edge with AI.10. Open-source models: Pushing Boundaries
This year marks a breakthrough for open-source AI models like Meta’s Llama, Mistral, and Google’s Gemma, offering affordability and accessibility that empower developers and small businesses to innovate. Open-source models like "Llama 3" enable companies to integrate AI seamlessly, transforming businesses of all sizes into AI-driven operations. Open-source fuels innovation and adoption, while closed-source models push AI's boundaries—both are vital for progress.11. Human-in-the-Loop (HITL): Trend
Human-in-the-loop (HITL) is a key trend, emphasizing the integration of human feedback into Generative AI. This ensures that AI models align with ethical standards, cultural nuances, and real-world needs. HITL improves AI accuracy and fosters collaboration between human expertise and AI. By using HITL, organizations can harness the power of AI while maintaining control over outcomes. Our research also highlights how LLMs can generate inaccurate results without proper human oversight.12. Agentic AI: Latest Addition
Agentic AI just popped up in mid-2024, the hottest topic for 2025. What's so special about it? This new kind of AI can operate independently, making decisions and acting without needing us to guide it at every step. This is quite different from older AI, which only did what we told it to. These AI agents are especially useful in customer service, where they can handle tasks more efficiently, saving time and increasing productivity, or in finance, where they quickly analyze data and offer recommendations.13. AI in the Creative Industry: Taking the Lead
Generative AI isn’t just about data and numbers—it’s getting creative too! It’s used to design clothes, create digital art, and even compose music. Imagine a fashion brand using AI to develop the next big trend or a filmmaker creating a blockbuster script with AI’s help. It’s opening up endless media, entertainment, and advertising possibilities.14. AI in Gaming: Immersive than Ever
If you’re a gamer, get ready for some serious fun. Generative AI creates immersive games by creating dynamic characters, realistic environments, and engaging storylines. Imagine playing a game where the plot changes based on your decisions—AI makes that possible.Wrapping It Up: The AI Revolution Is Here
Generative AI is more than a tool; it’s a game-changer. From personalized shopping experiences to groundbreaking medical discoveries, it’s transforming every part of our lives. The best part? We’re just getting started. As businesses and individuals, now’s the time to embrace this exciting technology. Whether you’re an entrepreneur, a tech enthusiast, or just someone curious about the future, there’s much to look forward to. So, what are you waiting for? The AI revolution isn’t coming; it’s already here. Let’s make the most of it!


Ask Data: Tableau’s New Natural Language Capability Engine


Search improvements in Data pane
While developing business specific dashboards, we need to create several calculations and its needs to be adjusted or new calculations needs to be created from existing calculations as per the business unit’s requirements.
With the newly added Search improvement feature, our lives are made easy by searching or filtering specific filed based on field name, type, or comments.
Search improvements in Data pane
Write to external databases in Tableau Prep
Write to external databases in Tableau Prep
The wow moment for prep is here with the introduction of the ability to output to a database. In all previous versions of Prep, we have been able to write to an extract file or csv, and now from the latest 2020.3 introduces the ability to output to a database. Currently supported databases are SQL Server, MySQL, PostgreSQL, Amazon Redshift, Snowflake, Oracle, and Teradata.
As shown in the below example, result from the flow can be saved to a data base table from the output step by choosing “Database table” option, specify your server connection (with login credentials) , choose the data base and then the table.
And now, Write to database will power the analytics journey by helping to solve the issues related to, data sources, data security and data governance
Open or Upload Workbooks On The Web within Tableau Server
Sharing your work and exploring insights from others just got easier. You can now open a Tableau workbook or upload it straight to the web without having to use Tableau Desktop. Simply select the workbook (.twb or .twbx) you want to upload and publish directly to your site on Tableau Server or Online. Only users with the appropriate publishing permissions will have the ability to upload content.
Open or Upload Workbooks On The Web within Tableau Server
Three refresh options are available, they are