10 Unusual Data Visualizations You Can Build With AI
Seven bar charts in sweatpants, one radial chart dressed for the wedding; Author: Shelby Temple; Made with Claude Opus 5.5 (SVG)
I have a confession. I scrolled through my last dashboard project and counted 14 bar charts before I hit anything that wasn’t a bar chart. (It was a KPI card. Doesn’t count.)
Bar charts, line charts, scatter plots and heatmaps are the comfy sweatpants of data viz. Reliable. Nobody judges you for wearing them. But have you ever looked at your own dashboard and realized you wore sweatpants to a wedding?
Here’s the dilemma, and it’s a real one. An unusual chart can stop a room from skimming past your work. It also costs decoding time. In a 30-minute quarterly readout, that can mean the first two minutes go to “wait, what do the colors mean?” instead of “so what do we do about the West region?” That’s the trade. Whether it’s worth it comes down to your goal and your audience.
You know the stakeholder. You present a chart, any chart, and the first reply is “Can you send me this in Excel?” They can’t trust a number until it’s sitting in cell B2 where they can SUM it themselves.
Honestly? That instinct isn’t wrong. Checking the math is a good habit. It just makes unusual charts a tougher sell.
So here’s the plan. Before the countdown, three quick pit stops:
- Goal and audience, plus the scorecard I use to grade every chart
- How I build these with AI, meaning how I get an agent like Claude Code to make them without lying to me
- Try it yourself, a no-setup way to follow along in a regular Claude chat
Then we jump into the reverse countdown from 10 to 1, ending on the one I like most. For each chart I’ll cover:
- What it is and when I reach for it
- Pros and cons
- A copy-paste prompt for building it with Claude Code (or a similar AI agent) from a spreadsheet
- A scorecard: Clarity, Engagement, Effectiveness, Generalization and AI Build, each from 1 to 5
(Full disclosure: I built this post with Inferno Ghostwriter, my open source Claude Code app. It’s free on GitHub, so grab it and use it for your own technical posts too!)
Before We Get Weird: Goal and Audience
Ask two questions before you build any unusual chart:
- Is the goal to engage the room?
- Will this audience put in the effort to decode something unfamiliar?
If the goal is a high-stakes decision, or the room only wants bar charts, save these for another day. No shame in that.
Every chart gets a scorecard. Each score runs from 1 to 5, and 5 is always the good outcome:
- Clarity: how low the risk of a misread is. Is it like a bar chart, where it’s hard to get the wrong idea? Or is it like a spider chart, where you reorder the axes and the same data draws a totally different shape? A 5 reads instantly and nobody asks for the spreadsheet. A 1 means someone hits reply-all with “can you export this to Excel so I can check it?”
- Engagement: how much it pleases the curious. A 5 could make the front page of DataIsBeautiful. A 1 gets scrolled past on the way to lunch.
- Effectiveness: does it fix a limitation of some other chart, or pack several insights into one view? A 5 answers a handful of questions at once. A 1 answers one question that a bar chart already had covered.
- Generalization: does it work on lots of data types and data sets, or does it need a very specific setup? A 5 works almost anywhere.
- AI Build: how easy it is to get an AI agent to build it correctly. A 5 is one prompt and done. A 1 means bring snacks.
I’m not saying ditch the bar chart. Let’s not get carried away — when in doubt, bar chart it out. These are more like a few extra colors on the palette for the days when gray and navy just aren’t cutting it.
How I Build These With AI
Most of these charts used to cost me an afternoon of wrestling the matplotlib docs. Now I hand an AI coding agent like Claude Code a CSV and a clear spec, and it writes the Python. I point every prompt at Vega-Lite (through the Altair library) or plotly express. Matplotlib can get there, but out of the box it looks like a figure from a 2004 lab report, and the polishing eats the afternoon I was trying to save.
The trick is the spec, not the tool. In other words, the agent can only be as clear as you are. Andrej Karpathy saw this coming back in 2023:
“The hottest new programming language is English” — Andrej Karpathy (@karpathy) on X
Here’s the setup I’m assuming for every chart below. You dropped a spreadsheet into your project folder. For most of these, it’s the Superstore sample saved as superstore.csv (download link and chat directions are in Try It Yourself below), with columns like Order Date, Ship Date, Ship Mode, Segment, Category, Sub-Category, Sales and Profit. You opened Claude Code (or a similar agent) in that folder, and now you’re typing. Every prompt follows the same recipe: what to read, how to aggregate, what to draw, how it should look, and what to print so you can check it.
Here’s a real prompt you can copy and paste into Claude Code or a Claude chat. This one builds the tornado chart from #4. Swap in your own file and column names:
Read data/sensitivity.csv. Columns: driver, low_value, high_value, baseline
(baseline is the same single profit number on every row).
Build a tornado chart in Python with Altair (Vega-Lite).
- One row per driver: a low bar from low_value to baseline and a high bar
from baseline to high_value (mark_bar with x and x2).
- Sort drivers by swing (high_value - low_value), biggest swing at the top.
- Low in gray (#9E9E9E), high in #E4572E. White background, no gridlines, no legend.
- Dollar labels at the end of each bar (mark_text). Thin vertical rule at the baseline, labeled.
- Title states the takeaway (name the biggest driver), not "Sensitivity Analysis".
- Before plotting, print the table you plotted: driver, low_value, high_value, swing.
- Save tornado.html and the code as tornado_chart.py. Also try tornado.png (needs vl-convert-python).
Read data/sensitivity.csv. Columns: driver, low_value, high_value, baseline
(baseline is the same single profit number on every row).
Build a tornado chart in Python with Altair (Vega-Lite).
- One row per driver: a low bar from low_value to baseline and a high bar
from baseline to high_value (mark_bar with x and x2).
- Sort drivers by swing (high_value - low_value), biggest swing at the top.
- Low in gray (#9E9E9E), high in #E4572E. White background, no gridlines, no legend.
- Dollar labels at the end of each bar (mark_text). Thin vertical rule at the baseline, labeled.
- Title states the takeaway (name the biggest driver), not "Sensitivity Analysis".
- Before plotting, print the table you plotted: driver, low_value, high_value, swing.
- Save tornado.html and the code as tornado_chart.py. Also try tornado.png (needs vl-convert-python).
One big caveat. The AI will happily build a beautiful chart on the wrong aggregation. Check the numbers before you admire the colors. Here’s the boring check I run every time:
import pandas as pd
df = pd.read_csv("superstore.csv", encoding="latin-1")
print(df.groupby("Category")["Sales"].sum().sort_values(ascending=False))
import pandas as pd
df = pd.read_csv("superstore.csv", encoding="latin-1")
print(df.groupby("Category")["Sales"].sum().sort_values(ascending=False))
If the printed table and the chart disagree, the chart is wrong. Every time.
That’s the opposite of the original vibe coding post:
“I just see stuff, say stuff, run stuff, and copy paste stuff, and it mostly works.” — Andrej Karpathy (@karpathy) on X
“Mostly works” is fine for a weekend project. It’s not fine for a chart someone makes budget calls from.
Try It Yourself (No Setup Required)
Want to follow along? You don’t need Claude Code, or even Python installed. A regular Claude chat can run the code for you.
- Download the Superstore sample from Kaggle (free account required). Rename the file to superstore.csv so it matches the prompts.
- Open a new chat at claude.ai and make sure code execution and file creation is turned on in your settings.
- Attach superstore.csv with the paperclip, paste any prompt below and hit enter.
- Claude runs the code and hands back an .html file. Download it, open it in your browser, then hover and zoom.
- Fix things in plain English: “shorter title,” “swap the orange for teal,” “sort it the other way.”
Two heads-ups. #8 and #1 need your own data, since Superstore has no ticket timestamps and nowhere near 50,000 rows. And if Claude says it can’t read the file, tell it the CSV is latin-1 encoded. Should be a piece of cake from there.
10. Split Violins
A violin is a box plot that went to the gym. It shows the whole shape of a distribution instead of five numbers. Split violins?!?! Yep. You put two groups back to back, one on the left half and one on the right, so you can compare the shapes without your eyes ever leaving the chart.
Here’s days to ship by ship mode, Consumer vs. Corporate (Home Office sat this one out, since a split violin only takes two groups):
I reach for this one when I suspect bimodal data, the kind a box plot flattens into one boring rectangle. But, for the cons, the smoothing (a kernel density estimate) can invent tails where there’s no data at all.
Mention the sample size. A gorgeous violin on 12 points is lying to you.
Here’s the prompt:
Read superstore.csv.
Compute days_to_ship = Ship Date minus Order Date, in days.
Keep only the Consumer and Corporate segments.
Build split violins with plotly express:
- px.violin with x="Ship Mode", y="days_to_ship", color="Segment", violinmode="overlay", points=False.
- Then update the traces: Consumer side="negative", Corporate side="positive",
spanmode="hard" (no tails past the real data), meanline_visible=True.
- Ship mode order: Same Day, First Class, Second Class, Standard Class.
- Consumer in gray (#9E9E9E), Corporate in #E4572E. plotly_white template.
- Add n= under each ship mode for each segment.
- Before plotting, print count, median and max days_to_ship by ship mode and segment.
- Save split_violins.html and the code as split_violins.py.
Read superstore.csv.
Compute days_to_ship = Ship Date minus Order Date, in days.
Keep only the Consumer and Corporate segments.
Build split violins with plotly express:
- px.violin with x="Ship Mode", y="days_to_ship", color="Segment", violinmode="overlay", points=False.
- Then update the traces: Consumer side="negative", Corporate side="positive",
spanmode="hard" (no tails past the real data), meanline_visible=True.
- Ship mode order: Same Day, First Class, Second Class, Standard Class.
- Consumer in gray (#9E9E9E), Corporate in #E4572E. plotly_white template.
- Add n= under each ship mode for each segment.
- Before plotting, print count, median and max days_to_ship by ship mode and segment.
- Save split_violins.html and the code as split_violins.py.
Clarity: 2/5 | Engagement: 4/5 | Effectiveness: 4/5 | Generalization: 2/5 | AI Build: 4/5
Someone asks why there are vases on the slide, then asks which Excel chart type that is. (There isn’t one.) Generalization is low because it needs exactly two groups and a numeric column.
9. The Waffle Chart (Breakfast of Data Champions)
This is probably the friendliest chart on the list, and yes, it made the cut partly because it’s named after breakfast. A waffle is 100 squares, and each square is 1% of the whole, so you get part-to-whole from area instead of angles. Here’s sales share by category, one waffle per category. I picked a lopsided split on purpose:
The greatest pro for the waffle is speed. Office Supplies eats 50 of the 100 squares and Technology gets 18, and nobody needs a legend to feel that gap. Lopsided splits are where the waffle shines. But, for the cons, it falls apart past about five categories, and there’s nowhere inside it to put labels.
There’s a package called pywaffle that does this with rows=10 and values that sum to 100 (the docs explain why that gets you a clean 10 by 10 grid). I skip it and have the agent lay out the 100 squares itself in Vega-Lite, so the waffle matches every other chart here. Here’s the prompt:
Read superstore.csv.
Sum Sales by Category, then convert to whole-number
percentages that sum to exactly 100
(round, then fix any leftover point on the biggest category).
Build a waffle chart in Python with Altair (Vega-Lite),
one waffle per Category, one square = 1%:
- Make a 100-row table per Category, one row per square, with x = i % 10 and y = i // 10.
The first N squares are filled, where N is that Category's percentage. The rest are empty.
- Draw with mark_square, sized so squares nearly touch. Filled squares in #E4572E, empty in light gray (#E0E0E0).
- Put the three waffles side by side (facet by Category), biggest share on the left.
- Label each waffle with its Category and percentage, like "Office Supplies (50%)". No axes, no legend, white background.
- Title states the takeaway (name the biggest category), not "Sales by Category".
- Before plotting, print the table: Category, Sales, percentage. Assert the percentages sum to 100.
- Save waffle.html and the code as waffle_chart.py.
Read superstore.csv.
Sum Sales by Category, then convert to whole-number
percentages that sum to exactly 100
(round, then fix any leftover point on the biggest category).
Build a waffle chart in Python with Altair (Vega-Lite),
one waffle per Category, one square = 1%:
- Make a 100-row table per Category, one row per square, with x = i % 10 and y = i // 10.
The first N squares are filled, where N is that Category's percentage. The rest are empty.
- Draw with mark_square, sized so squares nearly touch. Filled squares in #E4572E, empty in light gray (#E0E0E0).
- Put the three waffles side by side (facet by Category), biggest share on the left.
- Label each waffle with its Category and percentage, like "Office Supplies (50%)". No axes, no legend, white background.
- Title states the takeaway (name the biggest category), not "Sales by Category".
- Before plotting, print the table: Category, Sales, percentage. Assert the percentages sum to 100.
- Save waffle.html and the code as waffle_chart.py.
Clarity: 5/5 | Engagement: 3/5 | Effectiveness: 2/5 | Generalization: 2/5 | AI Build: 5/5
Nobody asks for the spreadsheet. Someone does ask if there’s syrup. Generalization takes the hit because a waffle does exactly one job: a share of a whole, five slices or fewer.
8. Heatmap With Marginal Bars
What’s the biggest weakness of a heatmap? You see the pattern but not the totals. Is Tuesday dark purple because Tuesday is busy, or because 2 PM is busy every day?!
The fix is to add bars on the top and right for the column and row totals. Check it out with support tickets by day of week and hour:
That’s the whole pitch: pattern and magnitude in one view. The con is that you’re aligning three charts, and on a phone it gets cramped real quick.
Personally, I always make the agent print the row and column totals, because a misaligned axis is easy to miss. Here’s the prompt, assuming your ticket export is tickets.xlsx:
Read tickets.xlsx (one row per support ticket, timestamp column created_at).
Extract day of week and hour (0-23), then count tickets per day/hour cell.
Build a heatmap with marginal bars in Python with Altair (Vega-Lite):
- Center: mark_rect heatmap, hour as ordinal (hour:O) on x, day on y, color scheme "viridis".
- Top: bar chart of tickets per hour. Right: horizontal bar chart of tickets per day.
- Lay it out as vconcat(top, hconcat(heatmap, right)) with matching widths and heights
so the bars line up with the heatmap's columns and rows.
- Both marginal bars in one gray (#9E9E9E). Days sorted Mon-Sun, not alphabetical.
- Before plotting, print the day totals and hour totals and assert both sum to the total ticket count.
- Save heatmap_marginals.html and the code as heatmap_marginals.py.
Read tickets.xlsx (one row per support ticket, timestamp column created_at).
Extract day of week and hour (0-23), then count tickets per day/hour cell.
Build a heatmap with marginal bars in Python with Altair (Vega-Lite):
- Center: mark_rect heatmap, hour as ordinal (hour:O) on x, day on y, color scheme "viridis".
- Top: bar chart of tickets per hour. Right: horizontal bar chart of tickets per day.
- Lay it out as vconcat(top, hconcat(heatmap, right)) with matching widths and heights
so the bars line up with the heatmap's columns and rows.
- Both marginal bars in one gray (#9E9E9E). Days sorted Mon-Sun, not alphabetical.
- Before plotting, print the day totals and hour totals and assert both sum to the total ticket count.
- Save heatmap_marginals.html and the code as heatmap_marginals.py.
Clarity: 4/5 | Engagement: 3/5 | Effectiveness: 4/5 | Generalization: 3/5 | AI Build: 3/5
A heatmap is just conditional formatting with ambition, so the Excel crowd feels right at home. AI Build loses points because lining up three axes is exactly where agents get sloppy.
7. The Stream Plot (Go With the Flow)
A stream plot, also called a streamgraph, is a stacked area chart that let go of the x-axis. The layers stack around a wobbly center line instead of sitting on zero, so the whole thing flows like a river. Lee Byron and Martin Wattenberg wrote the paper on it in 2008, and it’s a cousin of the stream graph I used in my Hunger Games viz.
Here’s monthly Superstore sales by category as a stream:
Visualization: Shelby Temple, made with Python; data: Superstore sample dataset; Author: Shelby Temple; Made with Claude Opus 5.5 (SVG)
The greatest pro for the stream plot is that you see many categories rise and fall over time in one memorable shape. But, for the cons, there’s no shared baseline, so exact values are hard to read. A layer can also look like it’s growing when it’s really just getting shoved around by its neighbors.
In other words, it’s built for “what’s the vibe over time,” not “what was the exact number in March.”
Here’s the prompt:
Read superstore.csv.
Sum Sales by month (from Order Date) and Category,
with missing month/Category combos filled with 0.
Build a stream plot in Python with Altair (Vega-Lite):
- mark_area with interpolate="basis": x = month, y = Sales with stack="center", color = Category.
- Muted categorical palette, white background, no y-axis, x-axis labeled by year.
- Legend on top instead of the side. Tooltip with month, Category and Sales.
- Title states the takeaway.
- Before plotting, print the first 5 and last 5 rows of the monthly table.
- Save stream.html and the code as stream_plot.py.
Read superstore.csv.
Sum Sales by month (from Order Date) and Category,
with missing month/Category combos filled with 0.
Build a stream plot in Python with Altair (Vega-Lite):
- mark_area with interpolate="basis": x = month, y = Sales with stack="center", color = Category.
- Muted categorical palette, white background, no y-axis, x-axis labeled by year.
- Legend on top instead of the side. Tooltip with month, Category and Sales.
- Title states the takeaway.
- Before plotting, print the first 5 and last 5 rows of the monthly table.
- Save stream.html and the code as stream_plot.py.
Clarity: 3/5 | Engagement: 5/5 | Effectiveness: 3/5 | Generalization: 2/5 | AI Build: 4/5
Someone asks where the y-axis went. Fair question. Then they ask for the monthly totals in Excel, which is honestly the right move. It needs a time series with several categories, and with only two it just looks sad.
6. The Treemap Bar Chart
One chart answers trend (bar length by year), share (stacked category segments) and mix (treemap tiles inside each segment). Here are Superstore-style sales by year, split into sub-categories:
The greatest pro is that different readers grab different answers, so nobody raises a hand with “but what about share?” But, for the cons, it eats real estate, and it’s redundant if your audience only needs one answer.
Before shipping, make sure the tiles in each bar add up to that year’s total. An AI that filters returns out of the tiles and not the bar totals will build you a chart that disagrees with itself beautifully.
Here’s the prompt:
Read superstore.csv.
Sum Sales by year (from Order Date), Category and Sub-Category.
Build a treemap bar chart in Python. Use squarify only to compute tile coordinates,
then draw everything with Altair (Vega-Lite) mark_rect using x, x2, y and y2:
- One horizontal bar per year, bar length = that year's total Sales.
- Inside each bar, stacked segments per Category, same Category color in every year.
- Inside each Category segment, squarify the Sub-Category tiles to fit that segment's rectangle.
- Thin white stroke between tiles. Label the year total at the end of each bar
and the Sub-Category name on the bigger tiles (mark_text).
- Before plotting, assert the Sub-Category tiles in each year add up to that year's bar total.
- Print the year totals. Save treemap_bar.html and the code as treemap_bar.py.
Read superstore.csv.
Sum Sales by year (from Order Date), Category and Sub-Category.
Build a treemap bar chart in Python. Use squarify only to compute tile coordinates,
then draw everything with Altair (Vega-Lite) mark_rect using x, x2, y and y2:
- One horizontal bar per year, bar length = that year's total Sales.
- Inside each bar, stacked segments per Category, same Category color in every year.
- Inside each Category segment, squarify the Sub-Category tiles to fit that segment's rectangle.
- Thin white stroke between tiles. Label the year total at the end of each bar
and the Sub-Category name on the bigger tiles (mark_text).
- Before plotting, assert the Sub-Category tiles in each year add up to that year's bar total.
- Print the year totals. Save treemap_bar.html and the code as treemap_bar.py.
Clarity: 4/5 | Engagement: 4/5 | Effectiveness: 5/5 | Generalization: 2/5 | AI Build: 2/5
The Excel crowd likes it, mostly because underneath it’s a bar chart they could have made themselves. Tiles inside segments inside bars is custom layout work, so expect a few rounds with the agent.
5. The Dumbbell Chart (Never Skip Leg Day)
A dumbbell chart puts two dots on the same row, one for before and one for after, and connects them with a line. The length of that line is the change. It goes by a few other names (connected dot plot, barbell chart), but I like the gym version best. Humans are really good at judging the distance between two things, and that’s exactly why it works.
Here’s Superstore sales by sub-category, first year in the file vs. last year:
Under the hood, all it needs is a table with three columns: category, starting value and ending value. One row per category. That’s it. The greatest pro is that the gap is the story, and sorting by the gap hands your audience a ranked list of winners and losers. But, for the cons, it only knows two points in time. If sales tanked in year two and recovered by year four, the dumbbell shrugs and tells you nothing happened.
Sort by the change, not alphabetically. An alphabetical dumbbell is just a fancy grocery list. Here’s the prompt:
Read superstore.csv.
Parse Order Date and keep only the first and last year in the file.
Sum Sales by Sub-Category for each of those two years.
Build a layered dumbbell chart in Python with Altair (Vega-Lite):
- One row per Sub-Category: a thick mark_rule from the first-year value to the last-year value (x and x2),
teal (#2A9D8F) when sales grew and coral (#E76F51) when they fell.
- Dots, size 120: first year as a hollow slate-blue circle (#7A8FA6), last year as a solid deep teal-navy circle (#1D3557).
- Sort rows by the change (last minus first), biggest growth at the top.
- mark_text with the change in dollars to the right of each row, teal for growth and coral for decline.
- No legend. Name the two years and their colors in the subtitle.
- White background, light vertical gridlines only. Title states the takeaway.
- Before plotting, print the table: sub_category, first_year, last_year, change.
- Save dumbbell.html and the code as dumbbell_chart.py.
Read superstore.csv.
Parse Order Date and keep only the first and last year in the file.
Sum Sales by Sub-Category for each of those two years.
Build a layered dumbbell chart in Python with Altair (Vega-Lite):
- One row per Sub-Category: a thick mark_rule from the first-year value to the last-year value (x and x2),
teal (#2A9D8F) when sales grew and coral (#E76F51) when they fell.
- Dots, size 120: first year as a hollow slate-blue circle (#7A8FA6), last year as a solid deep teal-navy circle (#1D3557).
- Sort rows by the change (last minus first), biggest growth at the top.
- mark_text with the change in dollars to the right of each row, teal for growth and coral for decline.
- No legend. Name the two years and their colors in the subtitle.
- White background, light vertical gridlines only. Title states the takeaway.
- Before plotting, print the table: sub_category, first_year, last_year, change.
- Save dumbbell.html and the code as dumbbell_chart.py.
Clarity: 4/5 | Engagement: 3/5 | Effectiveness: 3/5 | Generalization: 4/5 | AI Build: 4/5
Most people get it in one look. One VP asked me if it was a gym attendance dashboard. It generalizes well because anything with a before and an after fits, from plan vs. actual to last year vs. this year.
4. The Tornado Chart
This one answers the question every exec actually cares about: “what should we worry about first?”
Horizontal bars extend left and right from a baseline and are sorted biggest to smallest, so the whole thing looks like a tornado. It’s a cousin of the population pyramid you probably saw in a geography textbook. The classic use is sensitivity analysis: how much does profit swing if each input goes low vs. high? Here’s profit sensitivity across a handful of drivers:
The greatest pro for the tornado is that it sorts the drivers by how much they actually matter, and the biggest one sits right at the top where an exec looks first. I once watched a VP point at the top bar within five seconds and say, “Okay, so discount.” That was the whole meeting. But, for the cons, one-at-a-time sensitivity ignores interactions. Discount and shipping cost might gang up on you together.
In Vega-Lite it’s just bars with a start and an end (x and x2) on either side of the baseline. The full copy-paste prompt is the one back up in How I Build These With AI. It was built for exactly this chart.
Clarity: 5/5 | Engagement: 3/5 | Effectiveness: 4/5 | Generalization: 2/5 | AI Build: 4/5
Even the Excel crowd asks for it by name. Then they ask for the export anyway. Generalization is low because you need a sensitivity model with low and high scenarios before you can draw a single bar.
3. The Sunburst Diagram (Wear Sunscreen)
A sunburst draws a hierarchy as rings. The center is the top level, and each ring out goes one level deeper. It’s basically a donut chart that kept adding layers. John Stasko and colleagues were studying sunbursts as an alternative to treemaps around 2000.
Here’s the same Category → Sub-Category hierarchy as #6, so you can compare:
The greatest pro is hierarchy plus part-to-whole, and it’s great as an interactive drill-down. But, for the cons, we’re back to judging angles, and the outer slivers become unreadable.
On an interactive web page for curious users? Go for it. On a static slide for the spreadsheet loyalists? Probably not.
Plotly express sunburst does the heavy lifting. Here’s the prompt:
Read superstore.csv.
Sum Sales by Category and Sub-Category.
Build a sunburst with plotly express:
- px.sunburst with path=["Category", "Sub-Category"], values="Sales".
- One color per Category, sub-categories inherit it.
- Show label and percent of parent on each wedge (textinfo="label+percent parent").
- Before plotting, print the Category and Sub-Category totals.
- Save sunburst.html (interactive) and sunburst.png (needs the kaleido package),
and the code as sunburst.py.
Read superstore.csv.
Sum Sales by Category and Sub-Category.
Build a sunburst with plotly express:
- px.sunburst with path=["Category", "Sub-Category"], values="Sales".
- One color per Category, sub-categories inherit it.
- Show label and percent of parent on each wedge (textinfo="label+percent parent").
- Before plotting, print the Category and Sub-Category totals.
- Save sunburst.html (interactive) and sunburst.png (needs the kaleido package),
and the code as sunburst.py.
Clarity: 2/5 | Engagement: 5/5 | Effectiveness: 3/5 | Generalization: 3/5 | AI Build: 5/5
Someone asks why the pie chart has rings. Sorry, sunburst fans. Plotly does nearly all the work, so building it is the easy part. Reading it is the hard part.
2. The Raincloud Plot (Bring an Umbrella)
A raincloud is a half violin (the cloud), a narrow box plot and jittered raw points (the rain). It was popularized by Allen et al. (2019) in “Raincloud plots: a multi-platform tool for robust data visualization,” and the figures in that paper are worth stealing ideas from.
Here’s the same shipping data as the violins, rebuilt so you can see what the raw points add:
The greatest pro is that nothing hides, since you see the shape and every single order. But, for the cons, it’s busy, and the first time anyone sees one you’ll spend a sentence explaining the cloud.
For a room of analysts, that’s a great trade. For a quarterly exec readout, budget a solid minute to walk the room through it. Explain the cloud first, then the rain. Otherwise somebody asks about the weather.
The ptitprince package does it in one call. I’d rather skip the extra package. Plotly’s violin already has a one-sided cloud, a box and jittered points built in, so it’s one chart with a few settings. Here’s the prompt:
Read superstore.csv.
Compute days_to_ship = Ship Date minus Order Date, in days.
Build a horizontal raincloud plot with plotly express, one row per Ship Mode:
- px.violin with x="days_to_ship", y="Ship Mode", color="Ship Mode", orientation="h",
box=True, points="all".
- Then update the traces: side="positive" (the cloud on top), spanmode="hard",
pointpos=-0.6 and jitter=0.3 (the rain underneath), marker size 3, opacity 0.3.
- Muted palette, plotly_white template, no legend.
- Before plotting, print the count and median days_to_ship per ship mode.
- Save raincloud.html and the code as raincloud.py.
Read superstore.csv.
Compute days_to_ship = Ship Date minus Order Date, in days.
Build a horizontal raincloud plot with plotly express, one row per Ship Mode:
- px.violin with x="days_to_ship", y="Ship Mode", color="Ship Mode", orientation="h",
box=True, points="all".
- Then update the traces: side="positive" (the cloud on top), spanmode="hard",
pointpos=-0.6 and jitter=0.3 (the rain underneath), marker size 3, opacity 0.3.
- Muted palette, plotly_white template, no legend.
- Before plotting, print the count and median days_to_ship per ship mode.
- Save raincloud.html and the code as raincloud.py.
Clarity: 3/5 | Engagement: 4/5 | Effectiveness: 5/5 | Generalization: 4/5 | AI Build: 3/5
Dana asks why it’s raining on the sales team. It works on almost any numeric column split by a category, but stacking three layers usually takes the agent a couple of tries.
1. Scatter Plot With a Density Grid (Goodbye, Blob)
This is probably my favorite, because it fixes a problem every analyst eventually runs into.
Put 50,000 points on a scatter plot and you get a blob. That’s overplotting. The dots stack on top of each other, so a spot with 3 orders and a spot with 3,000 orders look exactly the same. Squints at blob. Blob squints back.
The fix is a gray hexbin density layer in the background, with the actual points drawn on top in color at very high transparency. You can see right through them to the hexes underneath:
Why hexes? Every neighbor is the same distance from the center. Square bins have diagonal neighbors that sit farther away.
(On a side note, bees have been hexbinning for millions of years, and not once has anyone asked them for a bar chart.)
Your AI will quietly pick a hex size, so I ask for two or three versions and compare them before I trust one.
It’s worth the extra effort, because a hidden concentration is the whole reason the density grid exists. As John Tukey put it:
“The greatest value of a picture is when it forces us to notice what we never expected to see.” — John Tukey, Exploratory Data Analysis (1977)
Here’s the prompt:
Read orders.xlsx (one row per order, columns order_value and profit_margin).
Build a scatter plot on a hexbin density layer in Python with Altair (Vega-Lite):
- Call alt.data_transformers.disable_max_rows() first (Altair stops at 5,000 rows by default).
- Background: hexbins built with calculate transforms, like the Altair gallery hexbin example,
in grayscale on a log scale (light gray = 1 order, near-black = 1,000+), legend titled "orders per hex".
- On top: every order as mark_circle in #E4572E, opacity 0.05, size 6, so the hexes show through.
- Make three versions side by side with 20, 40 and 60 hexes across so I can pick one.
- White background, minimal gridlines.
- Before plotting, print the row count and the 5 busiest hexes (center and count).
- Save density_grid.html and the code as density_grid.py.
Read orders.xlsx (one row per order, columns order_value and profit_margin).
Build a scatter plot on a hexbin density layer in Python with Altair (Vega-Lite):
- Call alt.data_transformers.disable_max_rows() first (Altair stops at 5,000 rows by default).
- Background: hexbins built with calculate transforms, like the Altair gallery hexbin example,
in grayscale on a log scale (light gray = 1 order, near-black = 1,000+), legend titled "orders per hex".
- On top: every order as mark_circle in #E4572E, opacity 0.05, size 6, so the hexes show through.
- Make three versions side by side with 20, 40 and 60 hexes across so I can pick one.
- White background, minimal gridlines.
- Before plotting, print the row count and the 5 busiest hexes (center and count).
- Save density_grid.html and the code as density_grid.py.
Clarity: 4/5 | Engagement: 3/5 | Effectiveness: 5/5 | Generalization: 4/5 | AI Build: 4/5
Someone asks to see all 50,000 rows in Excel. Excel can handle it. Their laptop fan disagrees. Any two numeric columns with a lot of rows will work.
Final Thoughts
So is the trade worth it? I think it depends (sorry, I know).
If the goal is to engage and the audience is curious, get weird. Waffle it, or rain on it. If the goal is a high-stakes decision and the room trusts nothing until it’s in a spreadsheet, bar chart it out, attach the .xlsx and save the sunburst for Reddit. The holy grail is a chart that’s unusual and clear at the same time. It isn’t easy, but the density grid proves it’s possible.
AI makes weird charts cheap to build. It’s still on you to make sure the weird chart is telling the truth. Run the validation commands to spot check.
This list is by no means comprehensive. Ridgeline plots and beeswarms deserve their own day.
I appreciate the read. Leaving you with one last exploding pie chart (in case the waffle didn’t fill you up), now available in Excel:
Still Hungry for More Charts?
- 5 Unusual Alternatives to Pie Charts — My earlier take on swapping pies for waffles, treemaps and friends, built on the same Superstore data. More breakfast food included.
- From Data to Viz — Yan Holtz and Conor Healy’s decision tree that starts from your data type and walks you to a chart, with the pitfalls listed for each. Ridgeline plots are in there too.

