Solving the Pie

Last week I challenged the you to reproduce this alternative to pie charts in Excel. I promised a screencast to show how it's done.

Square Pie

Eighteen people answered the call with nearly three dozen different solutions. Click here to watch the screencast showing how to accomplish the two most popular solutions; filling cells with conditional formatting and pushing the column chart to extremes.

If you want to look at the source,Clint Ivy produced an excellent version of the cell filling approach.

square_pie_clint_ivy.xls

Dermot Balson submitted an terrific version of the column chart approach.

square_pie_dermot_balson.xls

Thank you to everyone who submitted a solution.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License. All source code is released under a BSD License unless otherwise specified.

14 comments | Show all comments only the last 5 are shown


December 21, 2006
Googlizing myself | Chris Teplovs said:

[...] In that alert I found a blog post on Data Visualization Gone Wrong, which was fun to read and reminded me of the Coda Hale’s rant against Google Analytics’ pie charts. The Gone Wrong posting led me to juiceanalytics, which is also helpful. [...]


December 22, 2006
Mozlog.nl marktonderzoek weblog » Blog Archief » Square pie-chart of pie-chart? said:

[...] Als oplossing wordt de square pie-chart gegeven. De blog juiceanalytics heeft hier van een aantal Excel bestanden gepost. [...]


December 25, 2006
SPSSlog.com » Happy holidays! said:

[...] If you need something to do during your time off, try out theĀ great online graph service Swivel, or try making the coolest SQUARE PIE-CHART graphs with SPSS! Post all your creations in our comments… [...]


August 14, 2007
Stefan Schwarzer said:

Hi there,

to make things more complicated, I would like that my square actually displays with two different colors (in addition to white or "empty"). Say, I have a value of 62 (which is for example the Percentage of students finishing a course). Then I have another value, say 38 which is the Percentage (out of the total) of students finishing with a specifc grade.

So, my square looks like this (2 for those students finishing and 1 for those with a specific grade):

0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 2 2 2 2 2 2 2
0 0 0 2 2 2 2 2 2 1
0 0 2 2 1 1 1 1 1 1
0 0 2 2 1 1 1 1 1 1
0 0 2 2 1 1 1 1 1 1
0 0 2 2 1 1 1 1 1 1
0 0 2 2 1 1 1 1 1 1
0 0 2 2 1 1 1 1 1 1

But how can I visualize it in this way: http://geodata.grid.unep.ch/Picture_2.png ?


August 15, 2007
Chris Gemignani said:

Stephan, Here's a quick capsule of one way to do what you want.

Create a 10x10 block and number the blocks in the order in which you would like them to be filled. For instance:

1 2 5 . . . . . . .
3 4 6 . . . . . . .
7 8 9 . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .

Then if you want to show blocks for two values (call them A and B), use a two level conditional format to colorize the blocks:

IF blockval <= A: make color red

IF blockval <= A+B: make color orange

Your name

Email (optional, will not be shared)

Type the word "juice" (required to confuse the spammers)

Your comment


Add a comment