Fixing Excel charts...Or, why cast stones when you can pick up a hammer
By Chris Gemignani
April 19, 2006
Find more about:
analytics
excel
tools
visualization
It's always better to suggest a solution than criticise. Recently, we've slung stones at Excel's default charts. The default colors are bad, and some of the built-in charts are "what were the smoking?" ugly.
Edward Tufte and others provide principles for making good infographics, but beating Excel's rusty butterknife into an explanatory sword is hard. People who want to make nice looking charts waste time fixing them up. People who don't care about making nice looking charts inflict those charts on others.
We have a solution. The "Clean Charts" tool turns hard-to-read Excel default charts into Tufte-compliant wonderwerks in a single click. Here's what it does:
- Removes "chart-junk" (the contrast-reducing light grey background on most Excel charts, extraneous lines)
- Formats the axes with easy to read numeric formats (22000 becomes "22k")
- Changes series colors to an optimally chosen set that are designed for maximum contrast and readability
- Removes 3D from the chart. 3D charts introduce distortions that make it hard for people to understand your numbers.
- Fixes axis scaling problems.
- Fixes font and marker sizes to make them readable if you have resized your chart
To try Clean Charts and install it, download both these files into the same directory. Then open the Clean Charts Installer.xls file with macros turned on. Follow the instructions inside the installer.
To turn macros on, go to Tools, Macro, Security. Select Medium security level. Close the workbook and re-open it. On re-opening, when Excel gives the security warning that asks if you want to enable macros, choose "Enable Macros".
The add-in puts a menu item in the Format menu. If you have a chart already selected it will say “Clean this chart…” otherwise, it says, “Clean all charts…”. Select the option and you’ll get a number of ways to clean and simplify the chart.
This project is offered under the MIT License.





28 comments | Show all comments only the last 5 are shown
Slide design vs Noise -Moustache Analytics said:
[...] Se även Juice Analytics exempel på hur excel-grafer kan tvättas för att bli lättare för ögat. Tyvärr så är ju default-funktionen i Excel vad gäller diagram och grafer att fylla dem med linjer och färger som inte känns 100%. Därför är rådet att skapa dina egna standardgrafer som du kan använda (Customized graphs) det bästa du kan göra. Utan linjer på staplarna, 3D-effekter, gridlines bakom och med naturtrogna färger blir graferna mycket mera lättförståeliga. Jämför graferna nedan som har samma data men där den vänstra är default med Excels färger och den andra är gjord med mina val. [...]
Slide design vs Noise - Rena slides och diagram Moustache Analytics said:
[...] Se även Juice Analytics exempel på hur excel-grafer kan tvättas för att bli lättare för ögat. Tyvärr så är ju default-funktionen i Excel vad gäller diagram och grafer att fylla dem med linjer och färger som inte känns 100%. Därför är rådet att skapa dina egna standardgrafer som du kan använda (Customized graphs) det bästa du kan göra. Utan linjer på staplarna, 3D-effekter, gridlines bakom och med naturtrogna färger blir graferna mycket mera lättförståeliga. Jämför graferna nedan som har samma data men där den vänstra är default med Excels färger och den andra är gjord med mina val. [...]
» Knocking Excel 2007 down a peg or two » Jon Plummer said:
[...] Excel 2007 makes some flashy charts. Charts that are maybe too flashy, and requiring of much clicking and prodding to simplify. But why cast stones when you can pick up a hammer? [...]
David Mudge said:
Very nice. Simple to install, simple to use. Just one issue: when I used the "Remove 3D" option, my nice line charts are converted into column charts, which is not wanted.
Peter Basch said:
So, I follow instructions, turn security (in Excel 2003) to Medium, open the workbook, and get this:
This workbook has lost its VBA project, ActiveX controls and any other programmability-related features.
What am I doing wrong?
Thanks, P B
techcommdood said:
This is quite impressive. I'm really liking it!
Aaron said:
Looks appealing, but I couldn't make it work on Mac, Excel 2004... Any hints?
Chris Gemignani said:
Aaron, We don't have a copy of Mac Excel 2004 to test it on.
If you're a code jockey or you know someone who is, the Visual Basic code is available and it is open source.
Another post you may be interested in that should work on the Mac: http://www.juiceanalytics.com/writing/2006/08/tufte-charts-in-excel/
tim said:
I like it - if only your idea of 'nice colours' and my idea where the same... ;o)
Andreas said:
Clean Charts.xla
The xla file does not download at all rather it appears to open in my Firefox browser.
Please advise.
Also, will Clean Charts work with Excel 2000?
thx.
A
andrew said:
Brilliant - I use it often. Thank you for sharing it.
Andreas said:
Sorry, I accidentally submitted this in another thread,it belongs here. I hope someone can help...
I've tried downloading the two files:
Clean Charts Installer.xls
Clean Charts.xla
The xla file does not download at all rather it appears to open in my Firefox browser.
Please advise.
Also, will Clean Charts work with Excel 2000?
thx.
A
Oliver Hofmann said:
Same problem with the Mac Excel version -- getting a runtime error 53 (file not found: user32) which seems to indicate it's looking for a particular window? Did any Mac user get this to work yet?
Chris Gemignani said:
Oliver: I don't think it works on Mac. The code is available if any Mac Excel expert wants to take a shot.
Andreas: I believe it will work in Excel 2000. Sorry to hear about your downloading troubles. I'll take a look at the server side and see if I can figure anything out.
Tim: Hey, they were "scientifically chosen". You might like the colors in our Chart Chooser (http://juiceanalytics.com/writing/2007/11/introducing-chart-chooser/) better. I do.
Chris Gemignani said:
I've joined the two Excel downloads into a zip file. This should solve the downloading woes some have experienced. Thanks for your patience.
Andreas said:
Chris -- Just got around to downloading the zip file and trying to install the add-in as per the directions. When I open the .xls file and select "Enable macros" I then get an error message stating "File error: data may have been lost".
Please advise.
Thx,
Andreas
Andreas said:
Chris -- I also just realized that after I close the above described error message window and look at the Clean Charts Installer.xls file, sheet 1, it has no buttons. Also, after making a chart and selecting "Clean this chart form the format menu, it cleans the chart but leaves with no way to select the chart again.
Please advise,
Andreas
Chris said:
I have the same problem as comment 16. I also don't get buttons like 17. I'm running Office 2000.
Simon said:
This was an excellent find on Google. Thanks a lot. One issue is that it maxes out at 6 series. I have a stacked area chart with 7 series and it made the seventh white. I only just spotted it as I proof read my report!
Andreas said:
Chris -- Just wondered if the problem I had in my December 7 post got addressed. Please advise.
Rgds,
A
Ole said:
Thanks for the cleaner. However, I couldn't make it work in Excel 2003. It did say install, and the macros are on and the menu item is there - but nothing happens when I select a chart and press. Any ideas?
James said:
Ole, I also had that issue in Excel 2003, but only on charts that aren't located in a sheet. Change the location of the chart to inside another sheet and see if that fixes it for you
Vadim said:
Installs and works great on Excel 2k, except that it mangles charts with multiple scale bars (e.g. Amount on Left Y-scale and Date on right Y-scale). But turns out if you turn of the "fix 3d" options, then it leaves the graph in tact.
Also, for a scatter chart type (useful when dealing with dates) it removes the connecting lines, but leaves them for a line chart type. Can this be fixed? Thanks.
Nathan said:
I tried to use this in Excel 2003 - all my charts are in their own sheets. I got some kind of error, and had no idea how to debug, so I uninstalled it.
David said:
Since this was written in VB script, it won't work with Mac versions; well, at least not with Office 2008.
Garth said:
I installed and tried it with Excel 2003 professional and works great. Is there a simple way to change the default color scheme Clean Charts uses? Thanks!
jeff weir said:
This is great. Would be better still if it removed the legend for a one series chart - a bad example of chart junk.
Lohit said:
Cant thank you enough for this wonderful Add in
Was facing issues when the location of the chart was in a separate chart, but works like a charm when the chart is part of a sheet
Thanks again, you have a fan!!
Regards
Lohit
said:
Add a comment