Back

About MrExcel
Consulting Services
Learn Excel Resources
Challenge of the Month
MrExcel Seminars

Message Board

MrExcel Store
Podcast
Search
Media
Contact
Home

 

Thermometer Chart in Excel

Here is a cool technique for creating a thermometer style chart in Excel. This was sent in by Abhay Jain of New Delhi, India. When I first opened the workbook, I was completely fooled by what I saw. When you see how Abhay creates the chart, it is very clever.

The thermometer chart is a chart based on a single data point. In a lone cell, put a formula that points towards your percentage completion towards a goal. If the original number is a percentage, multiply by 100 to get an integer value between 0 and 100.

From the menu, select Insert - Chart. Choose a Column Chart and the first column sub-type - cluster column.

Proceed to step 3 of the Wizard. On the Titles tab, ensure there is no title. On the Axes tab, uncheck the Category option. On the Gridlines tab, uncheck Major Gridlines. On the Legend tab, uncheck Show Legend. Choose Finish. You will have a fairly boring chart with one bar like this one.

Right-click the blue bar and choose Format Data Series. On the Options tab, change the Gap Width to 0.

On the Patterns tab, choose the Fill Effects button.

On the Gradient tab of the Fill Effects dialog, choose Two Color and select a red and orange color.

Choose OK to close the Fill Effects dialog. Back on the Patterns tab, choose Orange for the line color. Choose OK to close Format Data Series dialog.

The next couple of steps are somewhat tricky. To Format the plot area, you will right-click just above the orange bar, but below the top of the chart. In my case, this is a fairly narrow strip of white - basically the four points from 56 through 60. If you happened to have a chart where the orange is to the top of the chart, it would be hard to isolate the plot area. In this case, jump ahead to reset the axis scale and then come back to this step. Right click and choose Format Plot Area.

Change the Border color to Orange on the Format Plot Area dialog. Choose OK.

Next, right-click in above the top of the chart, but still inside the outer border to select the Chart Area. Choose Format Chart Area.

Change the Border to None and select Round Corners. Choose OK to close the Format Chart area dialog.

With the chart area selected, grab the resize handle on the bottom right corner. Drag in and down to make the thermometer be narrow and long.

During the resize, the font along the y-axis scale has become tiny. Right-click any of the numbers along the left side of the chart and choose Format Axis.

On the Patterns tab, change the line color to Orange.

On the Scale tab, change the Maximum to 100.

On the Font tab, choose Arial, Orange, and type 6.5 as the font size.

Choose OK to close the Format Axis dialog. This last step ensured that the chart extends from 0 to 100. You now have something that looks like a thermometer.

If you wish, add a circle to the bottom. Display the drawing toolbar with View - Toolbars - Drawing. Select the Oval icon. While holding down the shift key, draw an oval. The shift key will constrain the oval to be a circle. Right-click the circle and choose Format AutoShape. Choose the appropriate color for the fill and the line color. Drag the circle so that it is roughly centered below the thermometer.

As you change the original cell, the thermometer chart will reflect the current value towards your goal.

Thanks to Abhay for sharing this idea with the readers of MrExcel. Abhay works with a research firm in India. He started using Excel a few months ago. He says he has learned a lot from our MrExcel community. He loves relating mnemonics and vedic mathematics to Excel.

This tip was originally published on April 14, 2005. The permanent URL for this page is http://www.mrexcel.com/tip095.shtml.

MrExcel.com Consulting can be hired to implement this concept, or many other cool applications, with your data.

MrExcel.com provides examples of Visual Basic procedures for illustration only, without warranty either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. The Visual Basic procedures on this web site are provided "as is" and we do not guarantee that they can be used in all situations.

 

Excel is a registered trademark of the Microsoft® Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.

All contents Copyright 1998-2008 by MrExcel Consulting.