Vibe Coding + Scrollytelling = 😍


Hi Reader,

I’ve always loved making data visualizations. Partly because they look cool. But mostly because they make data and insights easy for anyone to understand.

The problem? Coding up a visualization - or even better, an interactive, self-explanatory data story you can share - takes a ton of time.

Recently, I had a lightbulb moment: What if I tried AI coding agents to build scrollytelling visualization apps? 🤔

If you’re not familiar with the term, scrollytelling is a web design technique that uses scroll-triggered animations, transitions, and interactions to turn a dataset into an immersive story. You’ve probably seen examples in places like the New York Times, The Pudding, or Bloomberg.

So I gave it a shot. I used Cursor to build a scrollytelling piece on AI’s environmental footprint, using d3.js (a powerful JavaScript data visualization package).

Let’s just say… the first attempts were a mess. Lots of trial and error, and nothing remotely usable at first.

After wrestling with it for a while, here’s what I learned:

  • Coding agents don’t understand storytelling: If you just throw them a bunch of data files, and pray for magic 🪄. You have to provide the insights and structure.
  • They might “hallucinate” data: Sometimes they even modify your files. Be crystal clear that the data is read-only.
  • Detailed instructions are everything: The more explicit you are about tools, frameworks, story flow, and acceptance criteria, the better the results. I used ChatGPT to help me crafted a pretty detailed "build brief" for Cursor, which works pretty well.

So here's my battle-tested workflow for using AI coding agents to build scrollytelling apps (visual created with Claude Artifacts):

The first output will almost never be perfect. In my case, it took 5 - 10 more prompt iterations (Step 5 in my workflow) before I had something I felt good about.

I've seen some people got really enthusiastic about the potential of this use case, and what this can mean for their businesses:

And I just made a new video walking you through the whole experiment:

video preview

Let me know if you find this helpful!

Wishing you a great week ahead,

Thu 🤗


✨ P.S.: Work with me

If you want to learn how to code, build AI applications from the ground up, and actually understand what’s happening under the hood - I’ve built a program that guides you through all the fundamentals of Python, Machine Learning, and AI.

You’ll join a community of 350+ learners learning to build AI projects, supporting each other, and getting direct access to me along the way.

Wishing you a wonderful week,

Thu 🤗


Thu Vu

Say hi 🙌 on Youtube, LinkedIn, or Medium

Check out my older posts Here

Thu Vu

Join 6,000+ data professionals who are advancing their careers by learning from real-world projects, gaining first-hand experience, and accessing top resources delivered to your inbox every week.

Read more from Thu Vu

Hi Reader, Back in 2019, I decided to start a computer science bachelor degree, specializing in Machine Learning and AI. I was 27 at the time, and I felt lucky to find an online program that let me study while keeping my full-time job. I thought, “Great, I’ll finish it in 3 years.” Fast forward 6 years, with plenty of ups and downs in between, and I’m just now finishing the last module 🥲. If you asked me today whether I’d do it all over again, I’d hesitate. On one hand, the degree gave me...

Hi Reader, OpenAI dropped GPT-5 a couple of days ago, and the internet lit up. Some are calling it brilliant. Others are calling it a major let down after all the hype. After sifting through dozens of tweets and blog posts, here’s my takeaway: GPT-5 isn’t AGI - not even close. It’s more of an incremental upgrade than a godlike breakthrough over previous models. It still makes silly mistakes, has a glitchy “routing mechanism,” and struggles with understanding and generating images. Case in...

Hi Reader, If everyone can do vibe-coding, it's tempting to think coding is officially DEAD. But here's the truth: Vibe-coding is not a free lunch. I recently listened to a Lex Fridman's podcast with DHH, a respected programmer. They had a very interesting discussion on vibe-coding, I'd encourage you to check it out. In the past few months, some of you may have dabbled in vibe-coding. It’s a pretty exciting time - anyone can build functional apps with AI-powered coding tools like Cursor,...