
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
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!
Towards AI has published Building LLMs for Production—our 470+ page guide to mastering LLMs with practical projects and expert insights!

Discover Your Dream AI Career at Towards AI Jobs
Towards AI has built a jobs board tailored specifically to Machine Learning and Data Science Jobs and Skills. Our software searches for live AI jobs each hour, labels and categorises them and makes them easily searchable. Explore over 40,000 live jobs today with Towards AI Jobs!
Note: Content contains the views of the contributing authors and not Towards AI.