Carefree Data Viz with ChatGPT

JW Caterine

I haven’t used Excel to create a graph in years. Okay, I’m exaggerating. But it is a pain! I won’t make graphs even when they would enhance a project or report, just to avoid Excel’s mish-mash of buttons and dropdown menus.

Not anymore. Now, I make graphs all the time! That’s because I can tell ChatGPT what I want and create something in minutes.

If you’re not in the habit of using ChatGPT (most people aren’t), all you have to do to create a graph is give the chatbot the data you want visualized, tell it what kind of graph you want, and within seconds you’ll have a draft. From there, tell it what corrections you want to make, and with a little back-and-forth conversation, you’ll have a final product. That’s it.

Let me take you through a few use cases when I’ve created data visualizations with ChatGPT to enhance my journalism projects.

1. VA Teacher Pay Below US Average

Last month, the Virginia Education Association condemned Gov. Glenn Youngkin’s veto of two bills intended to raise Virginia teacher pay to the national average. In a press release, the VEA cited data from the National Education Association showing that, contrary to Youngkin’s claims, the average VA teacher pay was indeed below the national average.

Year Virginia Avg. National Avg.

2023-24 (FY24) $65,058 $71,699

2024-25 (FY25) $67,010 $73,466

2025-26 (FY26) $69,020 $75,156

But what does this pay gap look like visually? You tell me! Copy the numbers from the table above, and paste them into ChatGPT (it’s free and you don’t need to create an account) and ask “Can you make a graph of this table comparing teacher pay?”

In a few seconds, you’ll get something like this:

Not bad! With this visualization, it’s easier to see that VA teacher pay is not only lower than the national average, but the gap has barely been closed at all in the past few years.

2. Health Wagon Woes

Rural Virginia has healthcare deserts, and mobile clinics have tried to provide better access to care for those communities. The Health Wagon has earned state dollars over the years as they’ve led the charge in this effort. That state funding, however, ran dry last month, after the news that CEO Teresa Tyson had nearly doubled her compensation in two years.

Using the numbers from this Cardinal News story, you can ask ChatGPT to create a bar graph of the Health Wagon CEO’s annual compensation compared to the amount of state funding the nonprofit received and get something like this:

Whoa, two y-axes? That’s confusing. No problem – you can follow up and request that ChatGPT make the graph stretch back to 2010 and tell it to keep it to one y-axis, please.

Now that’s a better visual! The uptick in state funding is nearly parallel with the bump in the CEO’s pay a couple years later, which wasn’t easily perceptible from the numbers alone.

3. Flock Cameras in Hampton Roads

The Virginian-Pilot recently started a new series on mass surveillance in the Hampton Roads area and included the number of automated license plate readers, or flock cameras, operated by various local law enforcement agencies.

ChatGPT can’t produce a map visualization on its own (at least not when I’ve tried), but you can ask it to produce Python code that will.

Step-by-step guide on how to create map visualization program for Flock Camera data.

Set up a repo on GitHub, enable GitHub Pages (all free), and deploy the map visualization in no time. Like any programming project, there will be some debugging involved, but ChatGPT makes that easier as well.

The final product!

When in doubt, try ChatGPT out!

ChatGPT’s not perfect. After I started writing this post, I tried using the chatbot to create a pie graph for a report on the Aquaculture Information Exchange, but it had trouble making it exactly the way I wanted.

For the first time in years (kidding), I begrudgingly loaded up Excel to create the pie chart. It didn’t take as long as I thought it would, but it was still annoying.

Made in Excel

This case, however, is the exception to the rule. Overall, ChatGPT is an easy and rewarding way to create data visualizations. I hope you try making some with ChatGPT yourself!

Leave a comment