Formatting a Histogram in Microsoft Excel

Written by:  • Edited by: Rebecca Scudder
Updated Mar 28, 2011
• Related Guides: Microsoft | Excel

After creating a histogram, or any other chart, in Microsoft Excel 2007 or 2010, there are several ways you can modify it to make it even more visually attractive to your audience.

Chart Tools

Sample Histogram Formatting
click to enlarge
The Chart Tools available in Microsoft Excel 2007 and 2010 provide a multitude of ways to format any chart for both functional and design purposes. In this article, we’ll show how these tools can be used to modify the histogram that we created in part three of this series. If you would like to download the sample Excel file that contains all of the data, tables, and charts used in this series of articles, it is available in the Windows Platform Media Gallery.

Changing the Histogram Chart Design

To change the overall visual appearance of this histogram (or any other chart, for that matter), make sure that the chart is selected and then open the Design tab under Chart Tools on the Word ribbon.

Click any image below for a larger view.

Chart Tools
click to enlarge

Expanding the Chart Layout options will show several layout designs that can be applied to the histogram. You can widen the width of the columns, move them closer together, and display the value associated with each column among other things.

Chart Layout
click to enlarge

Similarly, you can expand the Chart Styles options to see different possibilities you can choose for the color and appearance of the column bars.

Chart Styles
click to enlarge

If you’re not sure about which options you want to choose, you can always apply them to see how they will appear on your particular histogram, and then Undo them if you don’t like the result. The screenshot below shows one example of a histogram with a modified layout and style.

Example of Style Changes
click to enlarge

Modifying the Legend

Although this may be a personal preference, one thing I hate is having any information on a histogram that doesn’t offer any added value. The whole purpose of preparing any type of chart is to make it easier for the viewer to see and understand the data. Unnecessary information detracts from this goal.

In our example, I find the legend to be one of these unneeded pieces of information. Legends are great if you have more than one item depicted on the histogram, but since we only have one, it’s already clear what our chart is representing.

To remove the legend, right-click on it and select Delete.

Delete the Legend
click to enlarge

After deleting the legend, the histogram image will rescale as shown in the screenshot below.

Rescaled Chart
click to enlarge

Adding Axis Titles

Even though we’ve deleted the legend, it still may be useful to add a title to the horizontal axis to clarify exactly what the labels on that axis represent. To do this, select the histogram and then open the Layout tab under Chart Tools on Word’s ribbon.

Layout Tab
click to enlarge

Click on the Axis Titles button, select Primary Horizontal Axis Title, and then choose the Title Below Axis option.

Axis Titles
click to enlarge

This will add the generic text ”Axis Title” underneath the horizontal axis. To modify this, click on the text box and type in your own title.

Adding Axis Label
click to enlarge

You can also adjust the font style and size here.

Other Types of Modifications

Sample Histogram
click to enlarge
There are several other types of modifications that you can make to the histogram to make it more visually appealing, but these are mostly based on user preference. Many of these options can be found on the Format tab under Chart Tools. There are such a wide variety of options that we won’t cover them here, but most are quite self-explanatory. Just as mentioned above, you can always try an option to see if you like the look and then Undo it if it doesn’t meet your expectations.

Getting Rid of the Gaps

What if you don't want any gaps between the bars of the histogram? You can change the gap width as follows.

Step 1: Right-click on any of the bars and select Format Data Series.

Format Data Series
click to enlarge
Step 2: In the Format Data Series window that appears, make sure you are on the Series Options tab. Then, move the Gap Width slider all the way to the left, setting it to No Gap.

No Gap
click to enlarge
Click Close and you'll be returned to your new gap-free histogram.

Gap Free Histogram
click to enlarge

References

Microsoft Excel Official Site, http://office.microsoft.com/en-us/excel/

All screenshots taken by author.


Comments

Showing all 8 comments
 
Michele McDonough Mar 28, 2011 7:39 AM
Frequency of Class Intervals
As mentioned in response to another comment, the original choice used for x-axis labels was not the best because it is only listing the upper limit of the class interval. However, this chart does calculate frequency over class intervals rather than individual points. I'll update the labeling choice to make this more clear.
Anonymous Nov 7, 2010 11:46 AM
Histogram
Hopefully everyone is aware that this is a bar graph not a histogram! Even when you move bars closer together it is not a proper histogram because the bars do not connect in a way that creates a true histogram. If your histogram has to be used for analyzing statistics I would suggest not using the approach!
Andrew May 17, 2010 12:00 AM
Thanks
Thanks very much for this, and thanks Michele for the gap width tip!
Barry Jan 31, 2010 7:45 PM
EXCELLENT
This is a great tutorial
Ana Jan 20, 2010 6:14 PM
Thank you
Thank you SO MUCH for this, it was a life saver :-D
TM Dec 14, 2009 6:30 AM
Thank you
Thank you so much, this has helped me enormously - appreciate it, and will be looking for anything else you have around.
Michele McDonough Aug 21, 2009 8:28 PM
No Gap Between Bars
If you want the columns of the histogram to "touch", right-click over any of the columns and choose Format Data Series. Then change the Gap Width to 0% (drag the slider all the way to No Gap). That should do the trick!
ycarter Aug 21, 2009 3:35 PM
bars touching
Histogram bars are supposed to touch how do I do that
 
blog comments powered by Disqus
Email to a friend