Peltier Tech Blog

Excel Chart Add-Ins | Training | Custom Solutions | Charts and Tutorials | PTS Blog

 

Main menu:

 
Peltier Tech
Chart Add-Ins

Peltier Tech Waterfall Chart Utility
Peltier Tech Cluster-Stack Chart Utility
Peltier Tech Box and Whisker Chart Utility
Peltier Tech Marimekko Chart Utility
Peltier Tech Dot Plot Utility
Peltier Tech Cascade Chart Utility

 
Excel Dashboards

Subscribe

Site search

Subscribe

Site search


Recent Posts

Recently Commented

Popular Posts

Archive


 

Categories


 

Privacy Policy

Creative Commons License
Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.

Announcing the Box and Whisker Chart Utility

by Jon Peltier
Monday, December 1st, 2008
Peltier Technical Services, Inc., Copyright © 2010.
Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.

I have developed a Box and Whisker Chart Utility that allows the user to construct box and whisker charts directly from the raw data. The utility builds the intermediate summary table and then creates and formats the chart from this table. The utility is designed to work in Excel versions 2000 through 2007.

Output from the Box and Whisker Utility consists of a table of data and a chart. The utility produces three styles of box plots: Simple Box and Whisker Quartile Chart, Four Box Quartile Chart, and Box and Whisker Chart with Outliers.

Simple Box and Whisker ChartFour Box Quartile ChartBox and Whisker Chart with Outliers

Each of these box and whisker chart styles is available in vertical (column) and horizontal (bar) variations.

Vertical Box and Whisker Chart with OutliersHorizontal Box and Whisker Chart with Outliers

The Box and Whisker Utility computes quartiles in four different ways, which can be changed on the fly by the user: Tukey hinges, CDF quartiles, Minitab quartiles, and Excel quartiles. The Tukey and CDF techniques are generally close to each other (identical in the data set below and therefore shown in just the first chart), Minitab calculates the widest interquartile ranges (fewer outliers), and Excel calculates the narrowest interquartile ranges (more outliers).

Outlier Box Chart using Tukey Hinges or CDF QuartilesOutlier Box Chart using Minitab QuartilesOutlier Box Chart using Excel Quartiles

The user can toggle the display of averages by checking the checkbox.

Box Chart With AveragesBox Chart Without Averages

The user can toggle the display of outliers in a Box and Whisker Chart with Outliers by checking the checkbox.

Box Chart With OutliersBox Chart Without Outliers

All of these box and whisker charts are “normal” Excel charts, made from a combination of common chart types, so they can be resized, reformatted, and copy-pasted into other files and applications. The user should make a copy of a chart, and make changes to the copy, to prevent the loss of work if the only chart is edited beyond recognition.

The core of the PTS Box and Whisker Utility is a procedure called PTS_BoxWhiskerChart, which can be called from other VBA procedures. The syntax of the PTS_BoxWhiskerChart function is:

Function PTS_BoxWhiskerChart(rngData As Range, _
                             bByColumn As Boolean, _
                             bFirstLabels As Boolean, _
                             bVertical As Boolean, _
                             lBoxWhiskerChartStyle As BoxWhiskerChartStyle) _
                             As Chart
 

There is a free demo version of the utility which creates simple vertical box and whisker style charts without the wide range of options described above. More details about the utility can be found in the PTS Box and Whisker Plot Utility Documentation. A quick comparison of the demo and professional versions of this utility can be found at PTS Box and Whisker Plot Utility, where the utility can also be purchased.

 

Related Posts:

Bookmark and share this entry:
  • Twitter
  • Digg
  • Facebook
  • LinkedIn
  • del.icio.us
  • Technorati
  • StumbleUpon
  • Google Bookmarks
  • Reddit
  • MySpace
  • Slashdot
  • Yahoo! Buzz
  • Tumblr

Learn how to create Excel dashboards.

Comments


Comment from barclay
Time: Thursday, March 26, 2009, 8:55 am

is there a way with this tool to have two different y-axes?


Comment from Jon Peltier
Time: Thursday, March 26, 2009, 6:25 pm

Barclay -

The Box and Whisker Utility does not have the capability to generate charts on multiple Y axes There are a couple of ways around this.

1. You could simply make two charts and display them side by side.

2. You could normalize all of the data so the multiple data fields fit within the same chart area, for example, 0 to 100% of an arbitrary value.

Write a comment

I welcome comments from my readers. If you have an opinion on this post, if you have a question or if there is anything to add, I want to hear from you. Whether you agree or disagree, please join the discussion.

If you want to include an image in your comment, post it on your own site or on one of the many free image sharing sites, and include a link in your comment. I'll download your image and insert the necessary html to display the image inline.

Read the PTS Blog Comment Policy.





Subscribe without commenting

Peltier Tech Waterfall Chart Utility Peltier Tech Cluster-Stack Chart Utility Peltier Tech Box and Whisker Chart Utility Peltier Tech Marimekko Chart Utility Peltier Tech Dot Plot Utility Peltier Tech Cascade Chart Utility

Create Excel dashboards quickly with Plug-N-Play reports.