How to Prompt GPT-4 For Authentic Data Visuals That Make You Look Like a Pro
Last Updated on April 23, 2025 by Editorial Team
Author(s): John Loewen, PhD
Originally published on Towards AI.
Exploratory analysis and data storytelling on global forest loss
Prompting GPT-4 for exploratory data analysis and storytelling are an essential tool to add to your data science toolbox.
For example, bar chart analysis, including grouped bar charts and rate-change, offers different perspectives on a particular data series.
In this tutorial, let’s use GPT-4’s impressive data analysis capabilities to analyze the Global Tree Cover Loss dataset.
With simple prompting, we can create multiple bar chart visualizations from our data set to provide a more granular country level analysis.
Let’s step through some examples!
The foundation of any good visualization is the dataset. For this tutorial, we’re working with a tree cover loss dataset.
The Global Forest Watch data set contains key statistics about global forests, including rates of forest change, forest extent and drivers of deforestation (found HERE). At their website, scroll down until you see the following:
Click on the download icon to download the file.
After you have downloaded the file, you will need to unzip it. In the new directory there will be a few files. You can use the Upload File utility as part of the GPT-4 interface to load our data set.
In the GPT-4 chat window, click on the ‘+’ icon to upload a file.Select the file called… Read the full blog for free on Medium.
Join thousands of data leaders on the AI newsletter. Join over 80,000 subscribers and keep up to date with the latest developments in AI. From research to projects and ideas. If you are building an AI startup, an AI-related product, or a service, we invite you to consider becoming a sponsor.
Published via Towards AI
Towards AI Academy Resources:
We build Enterprise AI. We teach what we learn. 15 AI Experts. 5 practical AI courses. 100k students
Free: 6-day Agentic AI Engineering Email Guide
Get your free Agents Cheatsheet here. Our proven framework for choosing the right AI architecture.
3 years of hands-on work with real clients into 6 pages.
Take our 90+ lesson From Beginner to Advanced LLM Developer Certification: From choosing a project to deploying a working product this is the most comprehensive and practical LLM course out there!
Discover Your Dream AI Career at Towards AI JobsOur jobs board is tailored specifically to AI, Machine Learning and Data Science Jobs and Skills. Explore over 100,000 live AI jobs today with Towards AI Jobs!
Note: Article content contains the views of the contributing authors and not Towards AI.