<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Peltier Tech Blog &#187; Chart Axes</title>
	<atom:link href="http://peltiertech.com/WordPress/category/chart-axes/feed/" rel="self" type="application/rss+xml" />
	<link>http://peltiertech.com/WordPress</link>
	<description>Peltier Tech Excel Charts and Programming Blog</description>
	<lastBuildDate>Mon, 15 Mar 2010 07:00:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Why Are My Excel Bar Chart Categories Backwards?</title>
		<link>http://peltiertech.com/WordPress/bar-chart-categories-backwards/</link>
		<comments>http://peltiertech.com/WordPress/bar-chart-categories-backwards/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 05:00:12 +0000</pubDate>
		<dc:creator>Jon Peltier</dc:creator>
				<category><![CDATA[Chart Axes]]></category>
		<category><![CDATA[Axis Labels]]></category>
		<category><![CDATA[category axis]]></category>

		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2635</guid>
		<description><![CDATA[I came across a blog post called Is it just me? (software defaults), which asks the age-old question, Why Are My Excel Bar Chart Categories Backwards? The post was in a new blog by Alex Kerin of Data Driven Consulting. Alex works on projects in analytics and dashboarding.
I have been asked this question a number [...]]]></description>
			<content:encoded><![CDATA[<p>I came across a blog post called <a href="http://blog.datadrivenconsulting.com/2009/11/is-it-just-me-software-defaults.html" rel="nofollow" title="Is it just me? (software defaults) | Data Driven Consulting" >Is it just me? (software defaults)</a>, which asks the age-old question, <em><strong>Why Are My Excel Bar Chart Categories Backwards?</strong></em> The post was in a new blog by <strong>Alex Kerin</strong> of <a href="http://www.datadrivenconsulting.com/index.html" rel="nofollow" >Data Driven Consulting</a>. Alex works on projects in analytics and dashboarding.</p>
<p>I have been asked this question a number of times, and being a founding member of <a href="http://peltiertech.com/WordPress/category/chart-busters/"title="Chart Busters - Peltier Tech Blog" >Chart Busters</a>, of course I know the answer. I&#8217;ve answered the question a number of times, but if I answer it here, it will become available for the ages.</p>
<p>I describe the problem and how to correct it. If you are really interested, I finish with an explanation of why this happens.</p>
<p><strong><span id="more-2635"></span>The Problem</strong></p>
<p>Let&#8217;s use some very simple data to illustrate the problem.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-11/AxisOrderData.png" alt="Data for bar chart axis order study" /></p>
<p>Let&#8217;s make a simple bar chart.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-11/AxisOrderBarWrong.png" alt="Bar chart with backwards category labels" /></p>
<p>The labels were sorted from top down in the worksheet, but they appear from bottom up along the chart axis.</p>
<p><strong>The Fix</strong></p>
<p>It&#8217;s easy, if tedious, to correct the order of category axis labels. Select the axis, press Ctrl+1 (numeral one), the universal shortcut in Excel for <em><strong>Format This Object</strong></em>, and in Excel 2003 the following dialog appears.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-11/AxisOrder2003dlg.png" alt="Excel 2003 Format Axis Scale Dialog" /></p>
<p>The fix is simple: check the two boxes for <em><strong>Categories in reverse order</strong></em> and <em><strong>Value (Y) axis crosses at maximum category</strong></em>.</p>
<p>The protocol in Excel 2007 is the same, except the dialog looks a little different. You select the same options, but they are located far apart on the dialog.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-11/AxisOrder2007dlg.png" alt="Excel 2007 Format Axis Scale Dialog" /></p>
<p>This changes the order of axis labels in our bar chart.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-11/AxisOrderBarCorrect.png" alt="Bar chart with appropriately ordered category labels" /></p>
<p>If you forget to make the value axis cross at the maximum category, the axis will now appear at the top of the chart. After reversing the order of the categories, the maximum category is at the bottom of the axis.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-11/AxisOrderBarHalfRight.png" alt="Bar chart with appropriately ordered category labels but value axis on top" /></p>
<p><strong>Why Does Excel Do That, Anyway?</strong></p>
<p>If we use the same data to make a column chart (line and area chart, too), the labels go from left to right, as expected.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-11/AxisOrderColumnCorrect.png" alt="Column chart with correct category label order" /></p>
<p>Take another look at the column chart, and note where the origin of the axis system is located. I&#8217;ve indicated the origin with a red circle.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-11/AxisOrderColumnOrigin.png" alt="Column chart with origin encircled" /></p>
<p>The values start low (at zero in this case) at the origin and increase in value as they move away from the origin. The category labels start with the first one next to the origin and later labels in the list extend further from the origin.</p>
<p>Now look at the bar chart and consider the origin of its axis system.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-11/AxisOrderBarOrigin.png" alt="Bar chart with origin encircled" /></p>
<p>The values start low (zero) at the origin and increase in value as they move away from the origin. The category labels start with the first one next to the origin and later labels in the list extend further from the origin. Just like in the column chart.</p>
<p>Perhaps this is better illustrated if we remove the category data from the bar chart. In this case, Excel uses the counting numbers 1, 2, 3, etc. in place of the empty categories.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-11/AxisOrderBarOriginNoCats.png" alt="Bar chart with origin encircled and counting numbers used for category labels" /></p>
<p>Both axes have low numbers next to the origin and higher numbers further away.</p>
<p>The whole problem arises because Excel follows the same axis ordering scheme for bar chart category axes as for any other axis in any other chart.</p>
<p>This describes the mechanics of axis label ordering. But, 99% of the time, a user expects the axis labels to go in the same order top to bottom as in the data source. <em><strong>Why Are My Excel Bar Chart Categories Backwards?</strong></em> is still a valid question: Why can&#8217;t bar chart categories automatically be reversed? Alternatively, why can&#8217;t the options for a bar chart&#8217;s category axis default to:</p>
<p align="center"><img src="http://peltiertech.com/images/2009-11/AxisOrderDlgSettings.png" alt="Alternate Defaults for Bar Chart Category Axes" /></p>
<p>Works for me.</p>
<p>Peltier Technical Services, Inc., Copyright © 2010.<br /> <br /><span style="font: 80% Verdana,Tahoma,Arial,sans-serif;">Licensed under a <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" rel="nofollow" rel="license" >Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a>.<br /> <br />
<a href="http://peltiertech.com/Utility/" rel="nofollow"  title="PTS Chart Utilities: Waterfall, Cluster-Stack Column, Box and Whisker, Marimekko"><img src="http://peltiertech.com/Utility/pix/ptschtbanner1.png" alt="PTS Chart Utilities: Waterfall, Cluster-Stack Column, Box and Whisker, Marimekko" border="0" /></a></p>



Bookmark and share this entry:


	<a rel="nofollow"  href="http://twitter.com/home?status=Why%20Are%20My%20Excel%20Bar%20Chart%20Categories%20Backwards%3F%20-%20http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fbar-chart-categories-backwards%2F" title="Twitter"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fbar-chart-categories-backwards%2F&amp;title=Why%20Are%20My%20Excel%20Bar%20Chart%20Categories%20Backwards%3F&amp;bodytext=I%20came%20across%20a%20blog%20post%20called%20Is%20it%20just%20me%3F%20%28software%20defaults%29%2C%20which%20asks%20the%20age-old%20question%2C%20Why%20Are%20My%20Excel%20Bar%20Chart%20Categories%20Backwards%3F%20The%20post%20was%20in%20a%20new%20blog%20by%20Alex%20Kerin%20of%20Data%20Driven%20Consulting.%20Alex%20works%20on%20projects%20in%20analy" title="Digg"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fbar-chart-categories-backwards%2F&amp;t=Why%20Are%20My%20Excel%20Bar%20Chart%20Categories%20Backwards%3F" title="Facebook"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fbar-chart-categories-backwards%2F&amp;title=Why%20Are%20My%20Excel%20Bar%20Chart%20Categories%20Backwards%3F&amp;source=Peltier+Tech+Blog+Peltier+Tech+Excel+Charts+and+Programming+Blog&amp;summary=I%20came%20across%20a%20blog%20post%20called%20Is%20it%20just%20me%3F%20%28software%20defaults%29%2C%20which%20asks%20the%20age-old%20question%2C%20Why%20Are%20My%20Excel%20Bar%20Chart%20Categories%20Backwards%3F%20The%20post%20was%20in%20a%20new%20blog%20by%20Alex%20Kerin%20of%20Data%20Driven%20Consulting.%20Alex%20works%20on%20projects%20in%20analy" title="LinkedIn"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fbar-chart-categories-backwards%2F&amp;title=Why%20Are%20My%20Excel%20Bar%20Chart%20Categories%20Backwards%3F&amp;notes=I%20came%20across%20a%20blog%20post%20called%20Is%20it%20just%20me%3F%20%28software%20defaults%29%2C%20which%20asks%20the%20age-old%20question%2C%20Why%20Are%20My%20Excel%20Bar%20Chart%20Categories%20Backwards%3F%20The%20post%20was%20in%20a%20new%20blog%20by%20Alex%20Kerin%20of%20Data%20Driven%20Consulting.%20Alex%20works%20on%20projects%20in%20analy" title="del.icio.us"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fbar-chart-categories-backwards%2F" title="Technorati"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fbar-chart-categories-backwards%2F&amp;title=Why%20Are%20My%20Excel%20Bar%20Chart%20Categories%20Backwards%3F" title="StumbleUpon"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fbar-chart-categories-backwards%2F&amp;title=Why%20Are%20My%20Excel%20Bar%20Chart%20Categories%20Backwards%3F&amp;annotation=I%20came%20across%20a%20blog%20post%20called%20Is%20it%20just%20me%3F%20%28software%20defaults%29%2C%20which%20asks%20the%20age-old%20question%2C%20Why%20Are%20My%20Excel%20Bar%20Chart%20Categories%20Backwards%3F%20The%20post%20was%20in%20a%20new%20blog%20by%20Alex%20Kerin%20of%20Data%20Driven%20Consulting.%20Alex%20works%20on%20projects%20in%20analy" title="Google Bookmarks"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fbar-chart-categories-backwards%2F&amp;title=Why%20Are%20My%20Excel%20Bar%20Chart%20Categories%20Backwards%3F" title="Reddit"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fbar-chart-categories-backwards%2F&amp;t=Why%20Are%20My%20Excel%20Bar%20Chart%20Categories%20Backwards%3F" title="MySpace"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=Why%20Are%20My%20Excel%20Bar%20Chart%20Categories%20Backwards%3F&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fbar-chart-categories-backwards%2F" title="Slashdot"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fbar-chart-categories-backwards%2F&amp;submitHeadline=Why%20Are%20My%20Excel%20Bar%20Chart%20Categories%20Backwards%3F&amp;submitSummary=I%20came%20across%20a%20blog%20post%20called%20Is%20it%20just%20me%3F%20%28software%20defaults%29%2C%20which%20asks%20the%20age-old%20question%2C%20Why%20Are%20My%20Excel%20Bar%20Chart%20Categories%20Backwards%3F%20The%20post%20was%20in%20a%20new%20blog%20by%20Alex%20Kerin%20of%20Data%20Driven%20Consulting.%20Alex%20works%20on%20projects%20in%20analy&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fbar-chart-categories-backwards%2F&amp;t=Why%20Are%20My%20Excel%20Bar%20Chart%20Categories%20Backwards%3F&amp;s=I%20came%20across%20a%20blog%20post%20called%20Is%20it%20just%20me%3F%20%28software%20defaults%29%2C%20which%20asks%20the%20age-old%20question%2C%20Why%20Are%20My%20Excel%20Bar%20Chart%20Categories%20Backwards%3F%20The%20post%20was%20in%20a%20new%20blog%20by%20Alex%20Kerin%20of%20Data%20Driven%20Consulting.%20Alex%20works%20on%20projects%20in%20analy" title="Tumblr"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://peltiertech.com/WordPress/bar-chart-categories-backwards/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Custom Axis, Y = 1, 2, 4, 8, 16</title>
		<link>http://peltiertech.com/WordPress/custom-axis-y-1-2-4-8-16/</link>
		<comments>http://peltiertech.com/WordPress/custom-axis-y-1-2-4-8-16/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 05:00:36 +0000</pubDate>
		<dc:creator>Jon Peltier</dc:creator>
				<category><![CDATA[Chart Axes]]></category>
		<category><![CDATA[Custom Axis Scale]]></category>
		<category><![CDATA[logarithmic axis]]></category>

		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2376</guid>
		<description><![CDATA[I was recently asked whether Excel can make an axis in which the value of each label was double the previous value, but the labels were equally spaced. I&#8217;ve covered custom axis scales several times (see Custom Axis Scales using Dummy Series), and this is simply another example.
The specific question was about labels 1, 2, [...]]]></description>
			<content:encoded><![CDATA[<p>I was recently asked whether Excel can make an axis in which the value of each label was double the previous value, but the labels were equally spaced. I&#8217;ve covered custom axis scales several times (see <a href="http://peltiertech.com/Excel/Charts/ChartIndex.html#AxisScales" rel="nofollow" >Custom Axis Scales using Dummy Series</a>), and this is simply another example.</p>
<p>The specific question was about labels 1, 2, 4, 8, etc. This kind of progression can be linearized by a logarithmic transformation; since the specific labels are powers of 2, base 2 logarithms are an exact fit.</p>
<p>The trick with a fake axis is that the data values are subjected to the same transformation as the axis label values, so the data lines up with the axis. The original axis label data is used for the labels themselves.</p>
<p><strong>Excel 2003</strong></p>
<p>We&#8217;ll start with this sample data. B2:C9 is the original data. D2:D9 has the base 2 logarithms of C2:C9.</p>
<p>Data for the custom axis labels is in B11:D18. Column B has zeros, for the X position of the axis points. Column C has Y values selected for the Y axis labels. Column D has the base 2 logs of these values, for positioning of the axis labels.<br class="spacer_" /></p>
<p align="center"><span id="more-2376"></span><img src="http://peltiertech.com/images/2009-08/axislogbase2data.png" alt="Excel 2003 Log Scale Axis - Data" /></p>
<p>Here&#8217;s what the original data in column C looks like The Y position is proportional to the Y value.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-08/axislogbase2chart1.png" alt="Excel 2003 Linear Axis" /></p>
<p>This is the transformed Y data in column D. The Y position in the chart is proportional to the logarithm of the Y value.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-08/axislogbase2chart2.png" alt="Excel 2003 Log Scale Axis - Log Data" /></p>
<p>We can&#8217;t leave those Y axis labels there. People can&#8217;t readily convert 0, 1, 2, etc. into 1, 2, 4 in their heads. Most people, anyway. Select B11:B18, hold Ctrl, and select D11:D18, so that both areas are selected. Copy, select the chart, and use Paste Special to add the data as a new series, with categories in the first column and series names in the first row.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-08/axislogbase2chart3.png" alt="Excel 2003 Log Scale Axis - Add Points for Labels" /></p>
<p>Add the labels to the new series. I&#8217;ve used <a href="http://appspro.com/Utilities/ChartLabeler.htm" rel="nofollow" title="Rob Bovey's Chart Labeler" >Rob Bovey&#8217;s Chart Labeler</a>, which is one of the <a href="http://peltiertech.com/WordPress/indispensable-excel-utilities/"title="Indispensable Excel Utilities" >best free Excel utilities</a> on the internet. The range C12:C18 contains the labels, and they&#8217;re added to the left of the added data points. I&#8217;ve colored the labels to match the points.&gt;</p>
<p align="center"><img src="http://peltiertech.com/images/2009-08/axislogbase2chart4.png" alt="Excel 2003 Log Scale Axis - Add Labels" /></p>
<p>Format the real Y axis to hide the labels, but in this case we can keep the axis line and tick marks. Adjust the width of the plot area to make room for the labels.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-08/axislogbase2chart5.png" alt="Excel 2003 Log Scale Axis - With Labels" /></p>
<p>Hide the added series by removing lines and markers, and the chart is done.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-08/axislogbase2chart6.png" alt="Excel 2003 Log Scale Axis" /></p>
<p><strong>Excel 2007</strong></p>
<p>Excel 2007 makes the chart much easier, because Microsoft introduced the ability to use a logarithmic axis scale with any base. All we need is the original data. (In general the protocol would be the same for both versions, but the log transformation makes this case different.)</p>
<p align="center"><img src="http://peltiertech.com/images/2009-08/axis2007log2data.png" alt="Data for Excel 2007 Log Scale Axis" /></p>
<p>Here&#8217;s the data in a default XY chart.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-08/axis2007log2chart1.png" alt="Excel 2007 Linear Axis" /></p>
<p>Here&#8217;s the data with the default base-10 log axis scale.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-08/axis2007log2chart2.png" alt="Excel 2007 Log Scale Axis - Base 10" /></p>
<p>Here is the chart with a base 2 log axis scale.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-08/axis2007log2chart3.png" alt="Excel 2007 Log Scale Axis - Base 2" /></p>
<p>This more flexible log axis is one of the rare examples of Excel 2007 charting actually improving on Excel 2003&#8217;s charting.</p>
<p>Peltier Technical Services, Inc., Copyright © 2010.<br /> <br /><span style="font: 80% Verdana,Tahoma,Arial,sans-serif;">Licensed under a <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" rel="nofollow" rel="license" >Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a>.<br /> <br />
<a href="http://peltiertech.com/Utility/" rel="nofollow"  title="PTS Chart Utilities: Waterfall, Cluster-Stack Column, Box and Whisker, Marimekko"><img src="http://peltiertech.com/Utility/pix/ptschtbanner1.png" alt="PTS Chart Utilities: Waterfall, Cluster-Stack Column, Box and Whisker, Marimekko" border="0" /></a></p>



Bookmark and share this entry:


	<a rel="nofollow"  href="http://twitter.com/home?status=Custom%20Axis%2C%20Y%20%3D%201%2C%202%2C%204%2C%208%2C%2016%20-%20http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fcustom-axis-y-1-2-4-8-16%2F" title="Twitter"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fcustom-axis-y-1-2-4-8-16%2F&amp;title=Custom%20Axis%2C%20Y%20%3D%201%2C%202%2C%204%2C%208%2C%2016&amp;bodytext=I%20was%20recently%20asked%20whether%20Excel%20can%20make%20an%20axis%20in%20which%20the%20value%20of%20each%20label%20was%20double%20the%20previous%20value%2C%20but%20the%20labels%20were%20equally%20spaced.%20I%27ve%20covered%20custom%20axis%20scales%20several%20times%20%28see%20Custom%20Axis%20Scales%20using%20Dummy%20Series%29%2C%20and%20thi" title="Digg"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fcustom-axis-y-1-2-4-8-16%2F&amp;t=Custom%20Axis%2C%20Y%20%3D%201%2C%202%2C%204%2C%208%2C%2016" title="Facebook"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fcustom-axis-y-1-2-4-8-16%2F&amp;title=Custom%20Axis%2C%20Y%20%3D%201%2C%202%2C%204%2C%208%2C%2016&amp;source=Peltier+Tech+Blog+Peltier+Tech+Excel+Charts+and+Programming+Blog&amp;summary=I%20was%20recently%20asked%20whether%20Excel%20can%20make%20an%20axis%20in%20which%20the%20value%20of%20each%20label%20was%20double%20the%20previous%20value%2C%20but%20the%20labels%20were%20equally%20spaced.%20I%27ve%20covered%20custom%20axis%20scales%20several%20times%20%28see%20Custom%20Axis%20Scales%20using%20Dummy%20Series%29%2C%20and%20thi" title="LinkedIn"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fcustom-axis-y-1-2-4-8-16%2F&amp;title=Custom%20Axis%2C%20Y%20%3D%201%2C%202%2C%204%2C%208%2C%2016&amp;notes=I%20was%20recently%20asked%20whether%20Excel%20can%20make%20an%20axis%20in%20which%20the%20value%20of%20each%20label%20was%20double%20the%20previous%20value%2C%20but%20the%20labels%20were%20equally%20spaced.%20I%27ve%20covered%20custom%20axis%20scales%20several%20times%20%28see%20Custom%20Axis%20Scales%20using%20Dummy%20Series%29%2C%20and%20thi" title="del.icio.us"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fcustom-axis-y-1-2-4-8-16%2F" title="Technorati"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fcustom-axis-y-1-2-4-8-16%2F&amp;title=Custom%20Axis%2C%20Y%20%3D%201%2C%202%2C%204%2C%208%2C%2016" title="StumbleUpon"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fcustom-axis-y-1-2-4-8-16%2F&amp;title=Custom%20Axis%2C%20Y%20%3D%201%2C%202%2C%204%2C%208%2C%2016&amp;annotation=I%20was%20recently%20asked%20whether%20Excel%20can%20make%20an%20axis%20in%20which%20the%20value%20of%20each%20label%20was%20double%20the%20previous%20value%2C%20but%20the%20labels%20were%20equally%20spaced.%20I%27ve%20covered%20custom%20axis%20scales%20several%20times%20%28see%20Custom%20Axis%20Scales%20using%20Dummy%20Series%29%2C%20and%20thi" title="Google Bookmarks"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fcustom-axis-y-1-2-4-8-16%2F&amp;title=Custom%20Axis%2C%20Y%20%3D%201%2C%202%2C%204%2C%208%2C%2016" title="Reddit"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fcustom-axis-y-1-2-4-8-16%2F&amp;t=Custom%20Axis%2C%20Y%20%3D%201%2C%202%2C%204%2C%208%2C%2016" title="MySpace"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=Custom%20Axis%2C%20Y%20%3D%201%2C%202%2C%204%2C%208%2C%2016&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fcustom-axis-y-1-2-4-8-16%2F" title="Slashdot"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fcustom-axis-y-1-2-4-8-16%2F&amp;submitHeadline=Custom%20Axis%2C%20Y%20%3D%201%2C%202%2C%204%2C%208%2C%2016&amp;submitSummary=I%20was%20recently%20asked%20whether%20Excel%20can%20make%20an%20axis%20in%20which%20the%20value%20of%20each%20label%20was%20double%20the%20previous%20value%2C%20but%20the%20labels%20were%20equally%20spaced.%20I%27ve%20covered%20custom%20axis%20scales%20several%20times%20%28see%20Custom%20Axis%20Scales%20using%20Dummy%20Series%29%2C%20and%20thi&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fcustom-axis-y-1-2-4-8-16%2F&amp;t=Custom%20Axis%2C%20Y%20%3D%201%2C%202%2C%204%2C%208%2C%2016&amp;s=I%20was%20recently%20asked%20whether%20Excel%20can%20make%20an%20axis%20in%20which%20the%20value%20of%20each%20label%20was%20double%20the%20previous%20value%2C%20but%20the%20labels%20were%20equally%20spaced.%20I%27ve%20covered%20custom%20axis%20scales%20several%20times%20%28see%20Custom%20Axis%20Scales%20using%20Dummy%20Series%29%2C%20and%20thi" title="Tumblr"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://peltiertech.com/WordPress/custom-axis-y-1-2-4-8-16/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tax the Rich, or Deceptive Axis Scales</title>
		<link>http://peltiertech.com/WordPress/tax-the-rich-or-deceptive-axis-scales/</link>
		<comments>http://peltiertech.com/WordPress/tax-the-rich-or-deceptive-axis-scales/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 06:00:13 +0000</pubDate>
		<dc:creator>Jon Peltier</dc:creator>
				<category><![CDATA[Chart Axes]]></category>
		<category><![CDATA[tax rates]]></category>

		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2251</guid>
		<description><![CDATA[In Daily Chart: Tax the Rich to Pay For Health Care? Conor Clarke responded to a proposal to pay for health care reform by taxing the rich. He plotted the variation in the effective Federal tax rate paid by the top 1% of households to put into perspective the effect of a few additional percent [...]]]></description>
			<content:encoded><![CDATA[<p>In <a href="http://andrewsullivan.theatlantic.com/the_daily_dish/2009/07/daily-chart-tax-the-rich-to-pay-for-health-care.html" rel="nofollow" >Daily Chart: Tax the Rich to Pay For Health Care?</a> Conor Clarke responded to a proposal to pay for health care reform by taxing the rich. He plotted the variation in the effective Federal tax rate paid by the top 1% of households to put into perspective the effect of a few additional percent added to the taxes of these high earners. I have downloaded <a href="http://www.cbo.gov/publications/collections/tax/2009/effective_rates.xls" rel="nofollow" title="effective_rates.xls" >the data</a> from the Congressional Budget Office web site and reproduced Clarke&#8217;s chart below.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-07/effectiverate1.png" alt="Effective Federal Tax Rates for top 1% of Earners" /></p>
<p><span id="more-2251"></span>In <a href="http://www.outsidethebeltway.com/archives/stupid_chart_of_the_day/" rel="nofollow" >Stupid Chart of the Day</a>, James Joyner points out that Clarke&#8217;s chart starts from 28%, not from 0%, and thus it is deceiving. (I don&#8217;t think it&#8217;s really that stupid a chart, but maybe Joyner is going for more pageviews.)  In <a href="http://www.ordinary-gentlemen.com/2009/07/charts-can-be-deceiving/" rel="nofollow" >Charts can be Deceiving</a> E.D. Kain followed up on this observation, and produced his own chart of the data; I have reproduced Kain&#8217;s chart below.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-07/effectiverate2.png" alt="Effective Federal Tax Rates for top 1% of Earners" /></p>
<p>So which chart is right, and which is deceiving? Well, both plot the data correctly, in terms of not using wrong data. But both have built-in flaws which distort the reader&#8217;s interpretations.</p>
<p>Using an axis that starts from zero is important in bar (and column) charts, because the visible length of the bars is what the reader sees and relates to the values. If the bars are truncated, their true length cannot be known, and the user is misled. Since the region under the line of an area chart is shaded, it implies that the area is the important encoding feature in the chart. Thus, starting the axis above zero is misleading for area charts as well as for bar charts.</p>
<p>I don&#8217;t think Clarke was attempting to mislead. When you enter his data into Excel and draw an area chart, Excel decides to start the axis at 28% by default, and Clarke simply made no attempt to change the default axis scale. (He did adjust the default fill by introducing a gradient, but the judges are not concerned with artistic impression here.)</p>
<p>And what of Kain&#8217;s chart? How is that chart deceptive? Let&#8217;s ignore the irrelevant two decimal digits he has added to his Y axis labels. Kain has started his Y axis at 0%, according to best practices for bar (and area) charts. He has made the Y axis maximum 100%, however, which compresses the data into the bottom portion of the chart. The variability in the data is dwarfed by the magnitude of the Y axis.</p>
<p>In any case, a line (or XY/scatter) chart has no implicit requirement to start at zero, since the position of the data points is what encodes their value.The benefit of using a line chart is that you can match the Y axis scale so that it spans from a little bit below the lowest data point to a little bit above the highest.</p>
<p>The 28% default minimum assigned by Excel isn&#8217;t even far enough from zero. I&#8217;ve used a minimum of 30% and a maximum of 37% on the Y axis of my line chart. This shows the steady decline in tax rate since the mid-1990s, but in no way implies that the tax rate now is 1/6 of it&#8217;s peak value.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-07/effectiverate3.png" alt="Effective Federal Tax Rates for top 1% of Earners" /></p>
<p><br class="spacer_" /></p>
<p>Peltier Technical Services, Inc., Copyright © 2010.<br /> <br /><span style="font: 80% Verdana,Tahoma,Arial,sans-serif;">Licensed under a <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" rel="nofollow" rel="license" >Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a>.<br /> <br />
<a href="http://peltiertech.com/Utility/" rel="nofollow"  title="PTS Chart Utilities: Waterfall, Cluster-Stack Column, Box and Whisker, Marimekko"><img src="http://peltiertech.com/Utility/pix/ptschtbanner1.png" alt="PTS Chart Utilities: Waterfall, Cluster-Stack Column, Box and Whisker, Marimekko" border="0" /></a></p>



Bookmark and share this entry:


	<a rel="nofollow"  href="http://twitter.com/home?status=Tax%20the%20Rich%2C%20or%20Deceptive%20Axis%20Scales%20-%20http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ftax-the-rich-or-deceptive-axis-scales%2F" title="Twitter"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ftax-the-rich-or-deceptive-axis-scales%2F&amp;title=Tax%20the%20Rich%2C%20or%20Deceptive%20Axis%20Scales&amp;bodytext=In%20Daily%20Chart%3A%20Tax%20the%20Rich%20to%20Pay%20For%20Health%20Care%3F%20Conor%20Clarke%20responded%20to%20a%20proposal%20to%20pay%20for%20health%20care%20reform%20by%20taxing%20the%20rich.%20He%20plotted%20the%20variation%20in%20the%20effective%20Federal%20tax%20rate%20paid%20by%20the%20top%201%25%20of%20households%20to%20put%20into%20perspe" title="Digg"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ftax-the-rich-or-deceptive-axis-scales%2F&amp;t=Tax%20the%20Rich%2C%20or%20Deceptive%20Axis%20Scales" title="Facebook"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ftax-the-rich-or-deceptive-axis-scales%2F&amp;title=Tax%20the%20Rich%2C%20or%20Deceptive%20Axis%20Scales&amp;source=Peltier+Tech+Blog+Peltier+Tech+Excel+Charts+and+Programming+Blog&amp;summary=In%20Daily%20Chart%3A%20Tax%20the%20Rich%20to%20Pay%20For%20Health%20Care%3F%20Conor%20Clarke%20responded%20to%20a%20proposal%20to%20pay%20for%20health%20care%20reform%20by%20taxing%20the%20rich.%20He%20plotted%20the%20variation%20in%20the%20effective%20Federal%20tax%20rate%20paid%20by%20the%20top%201%25%20of%20households%20to%20put%20into%20perspe" title="LinkedIn"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ftax-the-rich-or-deceptive-axis-scales%2F&amp;title=Tax%20the%20Rich%2C%20or%20Deceptive%20Axis%20Scales&amp;notes=In%20Daily%20Chart%3A%20Tax%20the%20Rich%20to%20Pay%20For%20Health%20Care%3F%20Conor%20Clarke%20responded%20to%20a%20proposal%20to%20pay%20for%20health%20care%20reform%20by%20taxing%20the%20rich.%20He%20plotted%20the%20variation%20in%20the%20effective%20Federal%20tax%20rate%20paid%20by%20the%20top%201%25%20of%20households%20to%20put%20into%20perspe" title="del.icio.us"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ftax-the-rich-or-deceptive-axis-scales%2F" title="Technorati"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ftax-the-rich-or-deceptive-axis-scales%2F&amp;title=Tax%20the%20Rich%2C%20or%20Deceptive%20Axis%20Scales" title="StumbleUpon"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ftax-the-rich-or-deceptive-axis-scales%2F&amp;title=Tax%20the%20Rich%2C%20or%20Deceptive%20Axis%20Scales&amp;annotation=In%20Daily%20Chart%3A%20Tax%20the%20Rich%20to%20Pay%20For%20Health%20Care%3F%20Conor%20Clarke%20responded%20to%20a%20proposal%20to%20pay%20for%20health%20care%20reform%20by%20taxing%20the%20rich.%20He%20plotted%20the%20variation%20in%20the%20effective%20Federal%20tax%20rate%20paid%20by%20the%20top%201%25%20of%20households%20to%20put%20into%20perspe" title="Google Bookmarks"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ftax-the-rich-or-deceptive-axis-scales%2F&amp;title=Tax%20the%20Rich%2C%20or%20Deceptive%20Axis%20Scales" title="Reddit"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ftax-the-rich-or-deceptive-axis-scales%2F&amp;t=Tax%20the%20Rich%2C%20or%20Deceptive%20Axis%20Scales" title="MySpace"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=Tax%20the%20Rich%2C%20or%20Deceptive%20Axis%20Scales&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ftax-the-rich-or-deceptive-axis-scales%2F" title="Slashdot"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ftax-the-rich-or-deceptive-axis-scales%2F&amp;submitHeadline=Tax%20the%20Rich%2C%20or%20Deceptive%20Axis%20Scales&amp;submitSummary=In%20Daily%20Chart%3A%20Tax%20the%20Rich%20to%20Pay%20For%20Health%20Care%3F%20Conor%20Clarke%20responded%20to%20a%20proposal%20to%20pay%20for%20health%20care%20reform%20by%20taxing%20the%20rich.%20He%20plotted%20the%20variation%20in%20the%20effective%20Federal%20tax%20rate%20paid%20by%20the%20top%201%25%20of%20households%20to%20put%20into%20perspe&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Ftax-the-rich-or-deceptive-axis-scales%2F&amp;t=Tax%20the%20Rich%2C%20or%20Deceptive%20Axis%20Scales&amp;s=In%20Daily%20Chart%3A%20Tax%20the%20Rich%20to%20Pay%20For%20Health%20Care%3F%20Conor%20Clarke%20responded%20to%20a%20proposal%20to%20pay%20for%20health%20care%20reform%20by%20taxing%20the%20rich.%20He%20plotted%20the%20variation%20in%20the%20effective%20Federal%20tax%20rate%20paid%20by%20the%20top%201%25%20of%20households%20to%20put%20into%20perspe" title="Tumblr"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://peltiertech.com/WordPress/tax-the-rich-or-deceptive-axis-scales/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Individually Formatted Dual Category Labels</title>
		<link>http://peltiertech.com/WordPress/individually-formatted-dual-category-labels/</link>
		<comments>http://peltiertech.com/WordPress/individually-formatted-dual-category-labels/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 09:30:16 +0000</pubDate>
		<dc:creator>Jon Peltier</dc:creator>
				<category><![CDATA[Chart Axes]]></category>
		<category><![CDATA[Axis Labels]]></category>
		<category><![CDATA[dual category axis]]></category>

		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2107</guid>
		<description><![CDATA[In Chart with a Dual Category Axis I showed how to make a chart with dual category labels (two rows of labels). In Individually Formatted Category Axis Labels I showed how to format axis labels individually by ignoring the built in labels and using an invisible series with individually formatted data labels. An attentive reader [...]]]></description>
			<content:encoded><![CDATA[<p>In <a href="http://peltiertech.com/WordPress/chart-with-a-dual-category-axis/"title="Chart with a Dual Category Axis | PTS Blog" >Chart with a Dual Category Axis</a> I showed how to make a chart with dual category labels (two rows of labels). In <a href="http://peltiertech.com/WordPress/individually-formatted-category-axis-labels/"title="Individually Formatted Category Axis Labels | PTS Blog" >Individually Formatted Category Axis Labels</a> I showed how to format axis labels individually by ignoring the built in labels and using an invisible series with individually formatted data labels. An attentive reader asked how to format the individual labels in a dual axis category axis, and the answer is: combine these two methods.</p>
<p>We&#8217;ll use the same data as in the original post.</p>
<p align="center"><span id="more-2107"></span><img src="http://peltiertech.com/images/2009-06/DualCatDataLabel_rng1.png" alt="Dual Category Axis Chart Data" /></p>
<p>Make a column chart using the data in columns C:E, ignoring the axis labels for now.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-06/DualCatDataLabel_cht1.png" alt="Chart with Generic Counting Number Axis" /></p>
<p>Format the axis to hide the default axis tick labels (but remember the sequence: 1, 2, 3, etc.).</p>
<p align="center"><img src="http://peltiertech.com/images/2009-06/DualCatDataLabel_cht2.png" alt="Chart with No Axis Showing" /></p>
<p>Here is the data for the dummy (hidden) series that will provide our labels. The first block is for the puter labels: the X values are in column G, corresponding to the slots in the category axis which were numbered for us in the first chart above; the Y values (zeros) are in column H; and the labels are in column I. I&#8217;ve kept all of the rows in this first block just so the labels were aligned and I could use simple formulas.</p>
<p>The numbers 2, 6, and 10 in column G refer to the slots that these labels will be centered under; if any of the groups had an even number of points, we would have had to center the outer labels between two axis slots, by using an X value of (for example) 9.5. Since we&#8217;ll be making XY series of these sets of data, we could use non-integer X values if necessary.</p>
<p>The labels use a simple formula to insert a line feed before the text of the original label; the line feed positions these outer labels below the inner labels. The formula in cell I2 is</p>
<p><tt style="tt">=CHAR(10)&amp;A2</tt></p>
<p>and this is copied down as needed. It can be used in all cells, since a line feed plus an empty string will not look like anything in the chart.</p>
<p>The second block, for the inner labels, is configured in the same way as the first.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-06/DualCatDataLabel_rng2.png" alt="Data for Hidden Series with Data Labels" /></p>
<p>Add the first dummy series by copying G1:H12, selecting the chart, and using Paste Special to add the data as a new series. The new series is not visible in the chart, because it is added as another stacked column with values (heights) of zero.</p>
<p>Select a visible series in the chart, and use the up arrow until the added series (&#8220;Outer Labels&#8221;) is selected. Right click on one of the selection indicators, and if the context menu has an item called Format Data Series, choose Chart Type, and select the XY type with markers but no lines. The series is indicated below as large red squares.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-06/DualCatDataLabel_cht3.png" alt="Chart with Added XY Series" /></p>
<p>Excel helpfully placed the XY series onto the secondary axis. Select the XY series, press CTRL+1 (numeral one) to open the Format Series dialog, and change its axis to Primary. See how well it is aligned.<br class="spacer_" /></p>
<p align="center"><img src="http://peltiertech.com/images/2009-06/DualCatDataLabel_cht4.png" alt="Added XY Series Moved to Primary Axis" /></p>
<p>Now add data labels to this series. The easiest way is to download and install <a href="http://appspro.com/Utilities/ChartLabeler.htm" rel="nofollow" title="Rob Bovey's Chart Labeler (AppsPro)" >Rob Bovey&#8217;s Chart Labeler</a>. The Chart Labeler is free and easy to use. It installs a submenu to the Tools menu, as shown below (in Excel 2007 it adds an item to the Add-Ins ribbon tab).<br class="spacer_" /></p>
<p align="center"><img src="http://peltiertech.com/images/2009-06/ChartLabeler.png" alt="Chart Labeler Menu" /></p>
<p>In the dialog, select the series, select the range containing the labels, and select the position of the labels.<br class="spacer_" /></p>
<p align="center"><img src="http://peltiertech.com/images/2009-06/DualCatDataLabel_dlg1.png" alt="Chart Labeler Dialog for Added XY Series" /></p>
<p>Here is the chart with the outer labels.<br class="spacer_" /></p>
<p align="center"><img src="http://peltiertech.com/images/2009-06/DualCatDataLabel_cht5.png" alt="XY Series with Data Labels" /></p>
<p>Add the second series. Copy K1:L12, select the chart, and use Paste Special to add this data as a new series. Since the previously added series was converted to an XY series and moved to the primary axis, this chart is conveniently pasted as an XY series on the primary axis, indicated by green diamonds below.<br class="spacer_" /></p>
<p align="center"><img src="http://peltiertech.com/images/2009-06/DualCatDataLabel_cht6.png" alt="Chart with Second Added XY Series" /></p>
<p>As above, use the Chart Labeler to label the Inner Labels series.<br class="spacer_" /></p>
<p align="center"><img src="http://peltiertech.com/images/2009-06/DualCatDataLabel_dlg2.png" alt="Chart Labeler Dialog for Second Added XY Series" /></p>
<p>Here is the chart with all category labels showing.<br class="spacer_" /></p>
<p align="center"><img src="http://peltiertech.com/images/2009-06/DualCatDataLabel_cht7.png" alt="Second XY Series with Data Labels" /></p>
<p>Hide the XY series by formatting them to show no lines and no markers.<br class="spacer_" /></p>
<p align="center"><img src="http://peltiertech.com/images/2009-06/DualCatDataLabel_cht8.png" alt="Hide XY Series (No Markers, No Lines)" /></p>
<p>Select an individual label (the first click selects the series of labels, the second selects the label itself), and format it as desired. When one label is selected, you can use the left and right arrow keys to move to adjacent labels. In Excel 2003 and earlier, the F4 key will assign the last applied format to the selected label.<br class="spacer_" /></p>
<p align="center"><img src="http://peltiertech.com/images/2009-06/DualCatDataLabel_dlg3.png" alt="Select Data Label and Apply Format" /></p>
<p>Here is the chart with its category labels formatted to match the plotted data. The color used for the font is a darker variation of the fill color used for the columns; it looks like these could be even a bit darker.<br class="spacer_" /></p>
<p align="center"><img src="http://peltiertech.com/images/2009-06/DualCatDataLabel_cht9.png" alt="Chart with Dual Individually Formatted Category Axis Labels" /></p>
<p><br class="spacer_" /></p>
<p>Peltier Technical Services, Inc., Copyright © 2010.<br /> <br /><span style="font: 80% Verdana,Tahoma,Arial,sans-serif;">Licensed under a <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" rel="nofollow" rel="license" >Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a>.<br /> <br />
<a href="http://peltiertech.com/Utility/" rel="nofollow"  title="PTS Chart Utilities: Waterfall, Cluster-Stack Column, Box and Whisker, Marimekko"><img src="http://peltiertech.com/Utility/pix/ptschtbanner1.png" alt="PTS Chart Utilities: Waterfall, Cluster-Stack Column, Box and Whisker, Marimekko" border="0" /></a></p>



Bookmark and share this entry:


	<a rel="nofollow"  href="http://twitter.com/home?status=Individually%20Formatted%20Dual%20Category%20Labels%20-%20http%3A%2F%2Fpeltiertech.com%2FWordPress%2Findividually-formatted-dual-category-labels%2F" title="Twitter"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Findividually-formatted-dual-category-labels%2F&amp;title=Individually%20Formatted%20Dual%20Category%20Labels&amp;bodytext=In%20Chart%20with%20a%20Dual%20Category%20Axis%20I%20showed%20how%20to%20make%20a%20chart%20with%20dual%20category%20labels%20%28two%20rows%20of%20labels%29.%20In%20Individually%20Formatted%20Category%20Axis%20Labels%20I%20showed%20how%20to%20format%20axis%20labels%20individually%20by%20ignoring%20the%20built%20in%20labels%20and%20using%20a" title="Digg"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Findividually-formatted-dual-category-labels%2F&amp;t=Individually%20Formatted%20Dual%20Category%20Labels" title="Facebook"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Findividually-formatted-dual-category-labels%2F&amp;title=Individually%20Formatted%20Dual%20Category%20Labels&amp;source=Peltier+Tech+Blog+Peltier+Tech+Excel+Charts+and+Programming+Blog&amp;summary=In%20Chart%20with%20a%20Dual%20Category%20Axis%20I%20showed%20how%20to%20make%20a%20chart%20with%20dual%20category%20labels%20%28two%20rows%20of%20labels%29.%20In%20Individually%20Formatted%20Category%20Axis%20Labels%20I%20showed%20how%20to%20format%20axis%20labels%20individually%20by%20ignoring%20the%20built%20in%20labels%20and%20using%20a" title="LinkedIn"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Findividually-formatted-dual-category-labels%2F&amp;title=Individually%20Formatted%20Dual%20Category%20Labels&amp;notes=In%20Chart%20with%20a%20Dual%20Category%20Axis%20I%20showed%20how%20to%20make%20a%20chart%20with%20dual%20category%20labels%20%28two%20rows%20of%20labels%29.%20In%20Individually%20Formatted%20Category%20Axis%20Labels%20I%20showed%20how%20to%20format%20axis%20labels%20individually%20by%20ignoring%20the%20built%20in%20labels%20and%20using%20a" title="del.icio.us"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Findividually-formatted-dual-category-labels%2F" title="Technorati"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Findividually-formatted-dual-category-labels%2F&amp;title=Individually%20Formatted%20Dual%20Category%20Labels" title="StumbleUpon"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Findividually-formatted-dual-category-labels%2F&amp;title=Individually%20Formatted%20Dual%20Category%20Labels&amp;annotation=In%20Chart%20with%20a%20Dual%20Category%20Axis%20I%20showed%20how%20to%20make%20a%20chart%20with%20dual%20category%20labels%20%28two%20rows%20of%20labels%29.%20In%20Individually%20Formatted%20Category%20Axis%20Labels%20I%20showed%20how%20to%20format%20axis%20labels%20individually%20by%20ignoring%20the%20built%20in%20labels%20and%20using%20a" title="Google Bookmarks"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Findividually-formatted-dual-category-labels%2F&amp;title=Individually%20Formatted%20Dual%20Category%20Labels" title="Reddit"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Findividually-formatted-dual-category-labels%2F&amp;t=Individually%20Formatted%20Dual%20Category%20Labels" title="MySpace"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=Individually%20Formatted%20Dual%20Category%20Labels&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Findividually-formatted-dual-category-labels%2F" title="Slashdot"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Findividually-formatted-dual-category-labels%2F&amp;submitHeadline=Individually%20Formatted%20Dual%20Category%20Labels&amp;submitSummary=In%20Chart%20with%20a%20Dual%20Category%20Axis%20I%20showed%20how%20to%20make%20a%20chart%20with%20dual%20category%20labels%20%28two%20rows%20of%20labels%29.%20In%20Individually%20Formatted%20Category%20Axis%20Labels%20I%20showed%20how%20to%20format%20axis%20labels%20individually%20by%20ignoring%20the%20built%20in%20labels%20and%20using%20a&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Findividually-formatted-dual-category-labels%2F&amp;t=Individually%20Formatted%20Dual%20Category%20Labels&amp;s=In%20Chart%20with%20a%20Dual%20Category%20Axis%20I%20showed%20how%20to%20make%20a%20chart%20with%20dual%20category%20labels%20%28two%20rows%20of%20labels%29.%20In%20Individually%20Formatted%20Category%20Axis%20Labels%20I%20showed%20how%20to%20format%20axis%20labels%20individually%20by%20ignoring%20the%20built%20in%20labels%20and%20using%20a" title="Tumblr"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://peltiertech.com/WordPress/individually-formatted-dual-category-labels/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Category Labels That Don&#8217;t Overlap the Data</title>
		<link>http://peltiertech.com/WordPress/category-labels-that-dont-overlap-the-data/</link>
		<comments>http://peltiertech.com/WordPress/category-labels-that-dont-overlap-the-data/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 09:27:39 +0000</pubDate>
		<dc:creator>Jon Peltier</dc:creator>
				<category><![CDATA[Chart Axes]]></category>
		<category><![CDATA[Category Labels]]></category>

		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=1848</guid>
		<description><![CDATA[In Data Sets, Dick described his affection for data to his Daily Dose of Excel readers. One of his bar charts showed the life expectancy differential between men and women in various countries. In Bangladesh, men actually outlive women, so the bar extends into negative chart space, and the category label &#8220;Bangladesh&#8221; overlies this data.

Dick [...]]]></description>
			<content:encoded><![CDATA[<p>In <a href="http://www.dailydoseofexcel.com/archives/2009/04/27/data-sets/" rel="nofollow" title="Data Sets" >Data Sets</a>, Dick described his affection for data to his Daily Dose of Excel readers. One of his bar charts showed the life expectancy differential between men and women in various countries. In Bangladesh, men actually outlive women, so the bar extends into negative chart space, and the category label &#8220;Bangladesh&#8221; overlies this data.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-04/bangladesh.png" alt="Axis Label Overlapping Plotted Data" /></p>
<p>Dick wondered how to avoid this problem. There are two ways, one very simple and the other slightly simple but more attractive.</p>
<p><span id="more-1848"></span>I&#8217;ll illustrate with the following data. The &#8220;opposite&#8221; data in column C is dummy data for a hidden series which will provide data labels that replace the default axis labels. The values are defined by a simple formula: <tt class="tt">=-B2/ABS(B2)</tt>. I could have used <tt class="tt">=-SIGN(B2)</tt>, but I thought of this variation after I built the data range.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-04/catlabeldata.png" alt="Non-Overlapping Axis Label Data" /></p>
<p>I created a bar chart using the first two columns of data.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-04/catlabelbar1.png" alt="Non-Overlapping Axis Label Bar Chart 1" /></p>
<p>Since Excel plots data starting from the axis and moving away, the first category (alpha) is plotted next to the axis, below the next category. It&#8217;s actually very logical, but people don&#8217;t understand this. Anyway, fix this by formatting the category axis so it is plotted in reverse order, and the value axis crosses at the maximum category, which is  at the bottom of the chart when categories are plotted in reverse order.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-04/catlabelbar2.png" alt="Non-Overlapping Axis Label Bar Chart 2" /></p>
<p>Okay, looks fine, except for the label &#8220;gamma&#8221; which overlap its data point.</p>
<p>I promised an easy way, so here goes. Format the category axis so the axis tick labels are in the &#8220;Low&#8221; position. They are plotted at the low side of the chart. This is a good quick way to move the labels out of the way, but in some cases, the labels may be moved pretty far from the axis. Because the labels need a margin, the entire chart is compressed laterally, reducing the resolution of the value axis scale.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-04/catlabelbar2a.png" alt="Non-Overlapping Axis Label Bar Chart 2a - The Easy Way" /></p>
<p>So here is the almost as simple method, which eliminates the issues raised above. Extend the chart source data to include the &#8220;opposite&#8221; column of data.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-04/catlabelbar3.png" alt="Non-Overlapping Axis Label Bar Chart 3" /></p>
<p>Format either of the bar chart series so the overlap is 100%. Now the bars line up perfectly.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-04/catlabelbar4.png" alt="Non-Overlapping Axis Label Bar Chart 4" /></p>
<p>Format the category axis to remove the tick labels (select the &#8220;None&#8221;) position.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-04/catlabelbar5.png" alt="Non-Overlapping Axis Label Bar Chart 5" /></p>
<p>Add data labels to the &#8220;opposite&#8221; series, using the Category Labels option.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-04/catlabelbar6.png" alt="Non-Overlapping Axis Label Bar Chart 6" /></p>
<p>Format the data labels so they are in the &#8220;Inside Base&#8221; position.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-04/catlabelbar7.png" alt="Non-Overlapping Axis Label Bar Chart 7" /></p>
<p>Now hide the &#8220;opposite&#8221; series by formatting it to show no border and no area fill. Also remove the &#8220;opposite&#8221; legend entry by single clicking twice on its text label, and pressing Delete. (You could remove the legend altogether, since there&#8217;s but a single series.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-04/catlabelbar8.png" alt="Non-Overlapping Axis Label Bar Chart 8 - Ta-Daa!" /></p>
<p>The technique works just as well with column charts.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-04/catlabelcol0.png" alt="Non-Overlapping Axis Label Column Chart 0" /></p>
<p>You could also use the <a href="http://peltiertech.com/Excel/ChartsHowTo/InvertIfNegative.html" rel="nofollow" title="Invert Excel Chart Format if Negative" >Invert Excel Chart Format if Negative</a> technique to further highlight the negative value.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-04/catlabelbar9.png" alt="Non-Overlapping Axis Label Bar Chart 9 - Inverted if Negative" /></p>
<p>Peltier Technical Services, Inc., Copyright © 2010.<br /> <br /><span style="font: 80% Verdana,Tahoma,Arial,sans-serif;">Licensed under a <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" rel="nofollow" rel="license" >Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a>.<br /> <br />
<a href="http://peltiertech.com/Utility/" rel="nofollow"  title="PTS Chart Utilities: Waterfall, Cluster-Stack Column, Box and Whisker, Marimekko"><img src="http://peltiertech.com/Utility/pix/ptschtbanner1.png" alt="PTS Chart Utilities: Waterfall, Cluster-Stack Column, Box and Whisker, Marimekko" border="0" /></a></p>



Bookmark and share this entry:


	<a rel="nofollow"  href="http://twitter.com/home?status=Category%20Labels%20That%20Don%27t%20Overlap%20the%20Data%20-%20http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fcategory-labels-that-dont-overlap-the-data%2F" title="Twitter"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fcategory-labels-that-dont-overlap-the-data%2F&amp;title=Category%20Labels%20That%20Don%27t%20Overlap%20the%20Data&amp;bodytext=In%20Data%20Sets%2C%20Dick%20described%20his%20affection%20for%20data%20to%20his%20Daily%20Dose%20of%20Excel%20readers.%20One%20of%20his%20bar%20charts%20showed%20the%20life%20expectancy%20differential%20between%20men%20and%20women%20in%20various%20countries.%20In%20Bangladesh%2C%20men%20actually%20outlive%20women%2C%20so%20the%20bar%20ex" title="Digg"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fcategory-labels-that-dont-overlap-the-data%2F&amp;t=Category%20Labels%20That%20Don%27t%20Overlap%20the%20Data" title="Facebook"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fcategory-labels-that-dont-overlap-the-data%2F&amp;title=Category%20Labels%20That%20Don%27t%20Overlap%20the%20Data&amp;source=Peltier+Tech+Blog+Peltier+Tech+Excel+Charts+and+Programming+Blog&amp;summary=In%20Data%20Sets%2C%20Dick%20described%20his%20affection%20for%20data%20to%20his%20Daily%20Dose%20of%20Excel%20readers.%20One%20of%20his%20bar%20charts%20showed%20the%20life%20expectancy%20differential%20between%20men%20and%20women%20in%20various%20countries.%20In%20Bangladesh%2C%20men%20actually%20outlive%20women%2C%20so%20the%20bar%20ex" title="LinkedIn"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fcategory-labels-that-dont-overlap-the-data%2F&amp;title=Category%20Labels%20That%20Don%27t%20Overlap%20the%20Data&amp;notes=In%20Data%20Sets%2C%20Dick%20described%20his%20affection%20for%20data%20to%20his%20Daily%20Dose%20of%20Excel%20readers.%20One%20of%20his%20bar%20charts%20showed%20the%20life%20expectancy%20differential%20between%20men%20and%20women%20in%20various%20countries.%20In%20Bangladesh%2C%20men%20actually%20outlive%20women%2C%20so%20the%20bar%20ex" title="del.icio.us"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fcategory-labels-that-dont-overlap-the-data%2F" title="Technorati"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fcategory-labels-that-dont-overlap-the-data%2F&amp;title=Category%20Labels%20That%20Don%27t%20Overlap%20the%20Data" title="StumbleUpon"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fcategory-labels-that-dont-overlap-the-data%2F&amp;title=Category%20Labels%20That%20Don%27t%20Overlap%20the%20Data&amp;annotation=In%20Data%20Sets%2C%20Dick%20described%20his%20affection%20for%20data%20to%20his%20Daily%20Dose%20of%20Excel%20readers.%20One%20of%20his%20bar%20charts%20showed%20the%20life%20expectancy%20differential%20between%20men%20and%20women%20in%20various%20countries.%20In%20Bangladesh%2C%20men%20actually%20outlive%20women%2C%20so%20the%20bar%20ex" title="Google Bookmarks"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fcategory-labels-that-dont-overlap-the-data%2F&amp;title=Category%20Labels%20That%20Don%27t%20Overlap%20the%20Data" title="Reddit"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fcategory-labels-that-dont-overlap-the-data%2F&amp;t=Category%20Labels%20That%20Don%27t%20Overlap%20the%20Data" title="MySpace"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=Category%20Labels%20That%20Don%27t%20Overlap%20the%20Data&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fcategory-labels-that-dont-overlap-the-data%2F" title="Slashdot"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fcategory-labels-that-dont-overlap-the-data%2F&amp;submitHeadline=Category%20Labels%20That%20Don%27t%20Overlap%20the%20Data&amp;submitSummary=In%20Data%20Sets%2C%20Dick%20described%20his%20affection%20for%20data%20to%20his%20Daily%20Dose%20of%20Excel%20readers.%20One%20of%20his%20bar%20charts%20showed%20the%20life%20expectancy%20differential%20between%20men%20and%20women%20in%20various%20countries.%20In%20Bangladesh%2C%20men%20actually%20outlive%20women%2C%20so%20the%20bar%20ex&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fcategory-labels-that-dont-overlap-the-data%2F&amp;t=Category%20Labels%20That%20Don%27t%20Overlap%20the%20Data&amp;s=In%20Data%20Sets%2C%20Dick%20described%20his%20affection%20for%20data%20to%20his%20Daily%20Dose%20of%20Excel%20readers.%20One%20of%20his%20bar%20charts%20showed%20the%20life%20expectancy%20differential%20between%20men%20and%20women%20in%20various%20countries.%20In%20Bangladesh%2C%20men%20actually%20outlive%20women%2C%20so%20the%20bar%20ex" title="Tumblr"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://peltiertech.com/WordPress/category-labels-that-dont-overlap-the-data/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Date Axis with Centered Years</title>
		<link>http://peltiertech.com/WordPress/date-axis-with-centered-years/</link>
		<comments>http://peltiertech.com/WordPress/date-axis-with-centered-years/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 11:00:40 +0000</pubDate>
		<dc:creator>Jon Peltier</dc:creator>
				<category><![CDATA[Chart Axes]]></category>
		<category><![CDATA[Axis Labels]]></category>
		<category><![CDATA[time-scale axis]]></category>

		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=1322</guid>
		<description><![CDATA[In The Increasing Patriotism of Iraqis (actually just a comment on the labeling of years on x-axes of graphs), Andrew Gelman showed the following chart from The Increasing Patriotism of Iraqis. The chart came from a paper by the author of The Monkey Cage blog.

Andrew commented that the X axis should have years centered between [...]]]></description>
			<content:encoded><![CDATA[<p>In <a href="http://www.stat.columbia.edu/~cook/movabletype/archives/2009/01/the-increasing-1.html" rel="nofollow" title="a comment on the labeling of years on x-axes of graphs" >The Increasing Patriotism of Iraqis (actually just a comment on the labeling of years on x-axes of graphs)</a>, Andrew Gelman showed the following chart from <a href="http://www.themonkeycage.org/2009/01/the_increasing_patriotism_of_i_1.html" rel="nofollow" title="The Increasing Patriotism of Iraqis" >The Increasing Patriotism of Iraqis</a>. The chart came from a paper by the author of <a href="http://www.themonkeycage.org/" rel="nofollow" >The Monkey Cage</a> blog.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-01/iraqidentity.png" alt="The Increasing Patriotism of Iraqis - Chart" /></p>
<p>Andrew commented that the X axis should have years centered between the tickmarks, since a year is a span of time, not an event.</p>
<p>I decided to demonstrate how to produce a date scale axis with centered year labels in Excel. Using the following simplified data, I reconstructed the chart of Elkins and Sides as an Excel line chart.</p>
<p align="center"><span id="more-1322"></span><img style="vertical-align: middle;" src="http://peltiertech.com/images/2009-01/YearlyAxisData01.png" alt="Chart with Centered Year Labels - Data" /> &nbsp; &nbsp; <img style="vertical-align: middle;" src="http://peltiertech.com/images/2009-01/YearlyAxisLabels01.png" alt="Chart with Centered Year Labels - Step 1" /></p>
<p>The year labels have a number format of &#8220;YYYY&#8221; so only the four-digit year is shown. If the months and days are also shown, we see that the year labels actually appear at the start of each year (which is evident if we examine the data).</p>
<p align="center"><img src="http://peltiertech.com/images/2009-01/YearlyAxisLabels02.png" alt="Chart with Centered Year Labels - Step 2" /></p>
<p>To &#8220;fix&#8221; the labels, I will add a second line chart series, move the original series to the secondary axis, and only display the primary axis year labels. Below is the data used for this second series, as well as the chart with this series added. Although the X values (category labels) are different for this second series, in a line chart, all series in each axis group use the same labels as the first series in the axis group.</p>
<p align="center"><img style="vertical-align: middle;" src="http://peltiertech.com/images/2009-01/YearlyAxisData02.png" alt="Chart with Centered Year Labels - Label Data" /> &nbsp; &nbsp; <img style="vertical-align: middle;" src="http://peltiertech.com/images/2009-01/YearlyAxisLabels03.png" alt="Chart with Centered Year Labels - Step 3" /></p>
<p>Move the original series to the secondary axis (secondary axis group) by choosing Secondary in the Format Series dialog. Note that both series now use the X labels of the second series.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-01/YearlyAxisLabels04.png" alt="Chart with Centered Year Labels - Step 4" /></p>
<p>When you move a series to the secondary axis group, Excel usually provides a secondary value (Y) axis but not a secondary category (X) axis. Delete the secondary Y axis and add a secondary X axis. This axis appears at the top of the chart, overlapping with the title.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-01/YearlyAxisLabels05.png" alt="Chart with Centered Year Labels - Step 5" /></p>
<p>Adjust the scale of the secondary date axis, so it starts at the beginning of 2004 (i.e., January 1) and ends at the start of 2008.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-01/YearlyAxisLabels06.png" alt="Chart with Centered Year Labels - Step 6" /></p>
<p>Finally, hide the secondary category axis by changing all of its formatting properties to None. Also hide the second series by chaning its line and marker properties to None.</p>
<p align="center"><img src="http://peltiertech.com/images/2009-01/YearlyAxisLabels07.png" alt="Chart with Centered Year Labels - Step 7" /></p>
<p>Without too much muss and fuss, we&#8217;ve created a nicer date scale axis, with the year labels centered within the corresponding years, rather than at the start of each year.</p>
<p>Peltier Technical Services, Inc., Copyright © 2010.<br /> <br /><span style="font: 80% Verdana,Tahoma,Arial,sans-serif;">Licensed under a <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" rel="nofollow" rel="license" >Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a>.<br /> <br />
<a href="http://peltiertech.com/Utility/" rel="nofollow"  title="PTS Chart Utilities: Waterfall, Cluster-Stack Column, Box and Whisker, Marimekko"><img src="http://peltiertech.com/Utility/pix/ptschtbanner1.png" alt="PTS Chart Utilities: Waterfall, Cluster-Stack Column, Box and Whisker, Marimekko" border="0" /></a></p>



Bookmark and share this entry:


	<a rel="nofollow"  href="http://twitter.com/home?status=Date%20Axis%20with%20Centered%20Years%20-%20http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fdate-axis-with-centered-years%2F" title="Twitter"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fdate-axis-with-centered-years%2F&amp;title=Date%20Axis%20with%20Centered%20Years&amp;bodytext=In%20The%20Increasing%20Patriotism%20of%20Iraqis%20%28actually%20just%20a%20comment%20on%20the%20labeling%20of%20years%20on%20x-axes%20of%20graphs%29%2C%20Andrew%20Gelman%20showed%20the%20following%20chart%20from%20The%20Increasing%20Patriotism%20of%20Iraqis.%20The%20chart%20came%20from%20a%20paper%20by%20the%20author%20of%20The%20Monkey%20" title="Digg"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fdate-axis-with-centered-years%2F&amp;t=Date%20Axis%20with%20Centered%20Years" title="Facebook"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fdate-axis-with-centered-years%2F&amp;title=Date%20Axis%20with%20Centered%20Years&amp;source=Peltier+Tech+Blog+Peltier+Tech+Excel+Charts+and+Programming+Blog&amp;summary=In%20The%20Increasing%20Patriotism%20of%20Iraqis%20%28actually%20just%20a%20comment%20on%20the%20labeling%20of%20years%20on%20x-axes%20of%20graphs%29%2C%20Andrew%20Gelman%20showed%20the%20following%20chart%20from%20The%20Increasing%20Patriotism%20of%20Iraqis.%20The%20chart%20came%20from%20a%20paper%20by%20the%20author%20of%20The%20Monkey%20" title="LinkedIn"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fdate-axis-with-centered-years%2F&amp;title=Date%20Axis%20with%20Centered%20Years&amp;notes=In%20The%20Increasing%20Patriotism%20of%20Iraqis%20%28actually%20just%20a%20comment%20on%20the%20labeling%20of%20years%20on%20x-axes%20of%20graphs%29%2C%20Andrew%20Gelman%20showed%20the%20following%20chart%20from%20The%20Increasing%20Patriotism%20of%20Iraqis.%20The%20chart%20came%20from%20a%20paper%20by%20the%20author%20of%20The%20Monkey%20" title="del.icio.us"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fdate-axis-with-centered-years%2F" title="Technorati"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fdate-axis-with-centered-years%2F&amp;title=Date%20Axis%20with%20Centered%20Years" title="StumbleUpon"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fdate-axis-with-centered-years%2F&amp;title=Date%20Axis%20with%20Centered%20Years&amp;annotation=In%20The%20Increasing%20Patriotism%20of%20Iraqis%20%28actually%20just%20a%20comment%20on%20the%20labeling%20of%20years%20on%20x-axes%20of%20graphs%29%2C%20Andrew%20Gelman%20showed%20the%20following%20chart%20from%20The%20Increasing%20Patriotism%20of%20Iraqis.%20The%20chart%20came%20from%20a%20paper%20by%20the%20author%20of%20The%20Monkey%20" title="Google Bookmarks"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fdate-axis-with-centered-years%2F&amp;title=Date%20Axis%20with%20Centered%20Years" title="Reddit"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fdate-axis-with-centered-years%2F&amp;t=Date%20Axis%20with%20Centered%20Years" title="MySpace"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=Date%20Axis%20with%20Centered%20Years&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fdate-axis-with-centered-years%2F" title="Slashdot"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fdate-axis-with-centered-years%2F&amp;submitHeadline=Date%20Axis%20with%20Centered%20Years&amp;submitSummary=In%20The%20Increasing%20Patriotism%20of%20Iraqis%20%28actually%20just%20a%20comment%20on%20the%20labeling%20of%20years%20on%20x-axes%20of%20graphs%29%2C%20Andrew%20Gelman%20showed%20the%20following%20chart%20from%20The%20Increasing%20Patriotism%20of%20Iraqis.%20The%20chart%20came%20from%20a%20paper%20by%20the%20author%20of%20The%20Monkey%20&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fdate-axis-with-centered-years%2F&amp;t=Date%20Axis%20with%20Centered%20Years&amp;s=In%20The%20Increasing%20Patriotism%20of%20Iraqis%20%28actually%20just%20a%20comment%20on%20the%20labeling%20of%20years%20on%20x-axes%20of%20graphs%29%2C%20Andrew%20Gelman%20showed%20the%20following%20chart%20from%20The%20Increasing%20Patriotism%20of%20Iraqis.%20The%20chart%20came%20from%20a%20paper%20by%20the%20author%20of%20The%20Monkey%20" title="Tumblr"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://peltiertech.com/WordPress/date-axis-with-centered-years/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Add Percentages on the Secondary Axis</title>
		<link>http://peltiertech.com/WordPress/add-percentages-on-the-secondary-axis/</link>
		<comments>http://peltiertech.com/WordPress/add-percentages-on-the-secondary-axis/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 13:00:21 +0000</pubDate>
		<dc:creator>Jon Peltier</dc:creator>
				<category><![CDATA[Chart Axes]]></category>
		<category><![CDATA[Secondary Axis]]></category>
		<category><![CDATA[Waterfall Chart]]></category>

		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=1099</guid>
		<description><![CDATA[I received an email from a user of my Waterfall Chart Utility, who wanted to add a secondary axis showing percentages corresponding to the values on the primary axis. This is really just a matter of applying straightforward algebra to compute the secondary axis scale parameters from the primary axis scale parameters and the two [...]]]></description>
			<content:encoded><![CDATA[<p>I received an email from a user of my <a href="http://peltiertech.com/Utility/WaterfallUtility.html" rel="nofollow" title="PTS Waterfall Chart Utility" >Waterfall Chart Utility</a>, who wanted to add a secondary axis showing percentages corresponding to the values on the primary axis. This is really just a matter of applying straightforward algebra to compute the secondary axis scale parameters from the primary axis scale parameters and the two values one wants to line up. I described a very similar problem in <a href="http://peltiertech.com/Excel/Charts/AlignXon2Ys.html" rel="nofollow" title="Align X Axis to Y=0 on Two Y Axes" >Align X Axis to Y=0 on Two Y Axes</a>, which solved the special case where zero on the primary axis was to coincide with zero on the secondary axis.</p>
<p><span id="more-1099"></span>The user&#8217;s data looks like this (I&#8217;ve changed the labels and values).</p>
<p align="center"><img title="Waterfall Chart Data" src="http://peltiertech.com/WordPress/wp-content/img200811/WaterfallData.png" alt="Waterfall Chart Data" /></p>
<p>The waterfall chart looks like this, after minor modifications.</p>
<p align="center"><img title="Waterfall Chart" src="http://peltiertech.com/WordPress/wp-content/img200811/WaterfallPctgAxis00.png" alt="Waterfall Chart" /></p>
<p>The user wanted the secondary axis to scale from 0% at $0, to 100% at the top of the revenue bar, or $840,000. The simplest way to do this is to set up a table like the one below, which contains the primary axis maximum and minimum, the primary and secondary axis values which have to line up, and spaces for the secondary axis maximum and minimum.</p>
<p align="center"><img title="Secondary Percentage Axis - Data" src="http://peltiertech.com/WordPress/wp-content/img200811/DualAxisData.png" alt="Secondary Percentage Axis - Data" /></p>
<p>I changed the view to show formulas in the cells, by holding Ctrl and clicking the button with the tilde (~). The formulas in C12 and C14 are really straightforward once you&#8217;ve set up a table like this.</p>
<p align="center"><img title="Secondary Percentage Axis - Formulas" src="http://peltiertech.com/WordPress/wp-content/img200811/DualAxisFormulas.png" alt="Secondary Percentage Axis - Formulas" /></p>
<p>I&#8217;ve switched back to normal view, by again holding Ctrl and clicking the ~ button. The calculated secondary axis scale parameters are now shown.</p>
<p align="center"><img title="Secondary Percentage Axis - Calculated Scale" src="http://peltiertech.com/WordPress/wp-content/img200811/DualAxisTable.png" alt="Secondary Percentage Axis - Calculated Scale" /></p>
<p>In order to have a secondary axis in an Excel chart, you need a series to put onto the secondary axis, in addition to any series that belong on the primary axis. The waterfall chart has a bunch of series on the primary axis, but we&#8217;ll add a new series for the secondary axis. Right click the chart, choose Source Data, and click on the Series tab. Click the Add button, enter a name (&#8220;Dummy&#8221;), and for values, enter ={0}, which is an array consisting of the single element zero. This results in a series which should remain hidden.</p>
<p align="center"><img title="Add Dummy Series Dialog" src="http://peltiertech.com/WordPress/wp-content/img200811/AddDummySeriesDialog.png" alt="Add Dummy Series Dialog" /></p>
<p>This new series is added to the primary axis. Select the new series, by using the Chart Menu&#8217;s Select Chart element dropdown, or simply by selecting any chart series (actually, any chart element) and cycling through all chart elements until the Dummy series is selected.</p>
<p align="center"><img title="Select series with chart toolbar" src="http://peltiertech.com/WordPress/wp-content/img200811/ChartToolbarSelectSeries.png" alt="Select series with chart toolbar" /></p>
<p>Once the Dummy series is selected, press Ctrl+1 (numeral one) to open the Format Series dialog. On the Axis tab, click Secondary. The chart now has a secondary axis.</p>
<p align="center"><img title="Waterfall Chart in progress" src="http://peltiertech.com/WordPress/wp-content/img200811/WaterfallPctgAxis01.png" alt="Waterfall Chart in progress" /></p>
<p>Format the secondary axis: right click on the axis and choose Format Axis. On the Scale tab, enter the numbers calculated above. If necessary, adjust the number format of the axis labels on the Number tab.</p>
<p align="center"><img title="Format Axis Scale Dialog" src="http://peltiertech.com/WordPress/wp-content/img200811/FormatAxisScaleDialog.png" alt="Format Axis Scale Dialog" /></p>
<p>You should also lock in the primary axis scale parameters, because any change Excel makes under Auto mode will break the calculations made above. Right click the axis, choose Format Axis, and on the scale tab, uncheck the Auto boxes in front of Minimum, Maximum, and Major Unit.</p>
<p align="center"><img title="Format Axis Scale Dialog" src="http://peltiertech.com/WordPress/wp-content/img200811/NoAutoAxisScaleDialog.png" alt="Format Axis Scale Dialog" /></p>
<p>The result is a chart with percentages that line up as desired.</p>
<p align="center"><img title="Waterfall Chart with Percentage Secondary Axis" src="http://peltiertech.com/WordPress/wp-content/img200811/WaterfallPctgAxis02.png" alt="Waterfall Chart with Percentage Secondary Axis" /></p>
<p>An alternative might be to scale the secondary axis from 0% to 100%, and the primary axis from $0 to $840,000.</p>
<p align="center"><img title="Alternative Waterfall Chart with Percentage Secondary Axis" src="http://peltiertech.com/WordPress/wp-content/img200811/WaterfallPctgAxis03.png" alt="Alternative Waterfall Chart with Percentage Secondary Axis" /></p>
<p>&nbsp;</p>
<p>Peltier Technical Services, Inc., Copyright © 2010.<br /> <br /><span style="font: 80% Verdana,Tahoma,Arial,sans-serif;">Licensed under a <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" rel="nofollow" rel="license" >Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a>.<br /> <br />
<a href="http://peltiertech.com/Utility/" rel="nofollow"  title="PTS Chart Utilities: Waterfall, Cluster-Stack Column, Box and Whisker, Marimekko"><img src="http://peltiertech.com/Utility/pix/ptschtbanner1.png" alt="PTS Chart Utilities: Waterfall, Cluster-Stack Column, Box and Whisker, Marimekko" border="0" /></a></p>



Bookmark and share this entry:


	<a rel="nofollow"  href="http://twitter.com/home?status=Add%20Percentages%20on%20the%20Secondary%20Axis%20-%20http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fadd-percentages-on-the-secondary-axis%2F" title="Twitter"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fadd-percentages-on-the-secondary-axis%2F&amp;title=Add%20Percentages%20on%20the%20Secondary%20Axis&amp;bodytext=I%20received%20an%20email%20from%20a%20user%20of%20my%20Waterfall%20Chart%20Utility%2C%20who%20wanted%20to%20add%20a%20secondary%20axis%20showing%20percentages%20corresponding%20to%20the%20values%20on%20the%20primary%20axis.%20This%20is%20really%20just%20a%20matter%20of%20applying%20straightforward%20algebra%20to%20compute%20the%20sec" title="Digg"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fadd-percentages-on-the-secondary-axis%2F&amp;t=Add%20Percentages%20on%20the%20Secondary%20Axis" title="Facebook"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fadd-percentages-on-the-secondary-axis%2F&amp;title=Add%20Percentages%20on%20the%20Secondary%20Axis&amp;source=Peltier+Tech+Blog+Peltier+Tech+Excel+Charts+and+Programming+Blog&amp;summary=I%20received%20an%20email%20from%20a%20user%20of%20my%20Waterfall%20Chart%20Utility%2C%20who%20wanted%20to%20add%20a%20secondary%20axis%20showing%20percentages%20corresponding%20to%20the%20values%20on%20the%20primary%20axis.%20This%20is%20really%20just%20a%20matter%20of%20applying%20straightforward%20algebra%20to%20compute%20the%20sec" title="LinkedIn"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fadd-percentages-on-the-secondary-axis%2F&amp;title=Add%20Percentages%20on%20the%20Secondary%20Axis&amp;notes=I%20received%20an%20email%20from%20a%20user%20of%20my%20Waterfall%20Chart%20Utility%2C%20who%20wanted%20to%20add%20a%20secondary%20axis%20showing%20percentages%20corresponding%20to%20the%20values%20on%20the%20primary%20axis.%20This%20is%20really%20just%20a%20matter%20of%20applying%20straightforward%20algebra%20to%20compute%20the%20sec" title="del.icio.us"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fadd-percentages-on-the-secondary-axis%2F" title="Technorati"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fadd-percentages-on-the-secondary-axis%2F&amp;title=Add%20Percentages%20on%20the%20Secondary%20Axis" title="StumbleUpon"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fadd-percentages-on-the-secondary-axis%2F&amp;title=Add%20Percentages%20on%20the%20Secondary%20Axis&amp;annotation=I%20received%20an%20email%20from%20a%20user%20of%20my%20Waterfall%20Chart%20Utility%2C%20who%20wanted%20to%20add%20a%20secondary%20axis%20showing%20percentages%20corresponding%20to%20the%20values%20on%20the%20primary%20axis.%20This%20is%20really%20just%20a%20matter%20of%20applying%20straightforward%20algebra%20to%20compute%20the%20sec" title="Google Bookmarks"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fadd-percentages-on-the-secondary-axis%2F&amp;title=Add%20Percentages%20on%20the%20Secondary%20Axis" title="Reddit"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fadd-percentages-on-the-secondary-axis%2F&amp;t=Add%20Percentages%20on%20the%20Secondary%20Axis" title="MySpace"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=Add%20Percentages%20on%20the%20Secondary%20Axis&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fadd-percentages-on-the-secondary-axis%2F" title="Slashdot"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fadd-percentages-on-the-secondary-axis%2F&amp;submitHeadline=Add%20Percentages%20on%20the%20Secondary%20Axis&amp;submitSummary=I%20received%20an%20email%20from%20a%20user%20of%20my%20Waterfall%20Chart%20Utility%2C%20who%20wanted%20to%20add%20a%20secondary%20axis%20showing%20percentages%20corresponding%20to%20the%20values%20on%20the%20primary%20axis.%20This%20is%20really%20just%20a%20matter%20of%20applying%20straightforward%20algebra%20to%20compute%20the%20sec&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fadd-percentages-on-the-secondary-axis%2F&amp;t=Add%20Percentages%20on%20the%20Secondary%20Axis&amp;s=I%20received%20an%20email%20from%20a%20user%20of%20my%20Waterfall%20Chart%20Utility%2C%20who%20wanted%20to%20add%20a%20secondary%20axis%20showing%20percentages%20corresponding%20to%20the%20values%20on%20the%20primary%20axis.%20This%20is%20really%20just%20a%20matter%20of%20applying%20straightforward%20algebra%20to%20compute%20the%20sec" title="Tumblr"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://peltiertech.com/WordPress/add-percentages-on-the-secondary-axis/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Logarithmic Axis Scales</title>
		<link>http://peltiertech.com/WordPress/logarithmic-axis-scales/</link>
		<comments>http://peltiertech.com/WordPress/logarithmic-axis-scales/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 12:28:34 +0000</pubDate>
		<dc:creator>Jon Peltier</dc:creator>
				<category><![CDATA[Chart Axes]]></category>
		<category><![CDATA[Bissantz]]></category>
		<category><![CDATA[data layout]]></category>
		<category><![CDATA[logarithmic axis]]></category>

		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=523</guid>
		<description><![CDATA[Dr. Nicolas Bissantz wrote in Do time series charts really compare time series? about time series being difficult to compare. The chart he discussed showed the cost of energy for three different heating methods. Says Nicolas, &#8220;The lines suggest that the price for heating oil has exploded, while electricity and natural gas have increased moderately.&#8221;
 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.bissantz.com/" rel="nofollow" title="Me Myself and BI" >Dr. Nicolas Bissantz</a> wrote in <a href="http://blog.bissantz.com/shocking-time-series" rel="nofollow" title="Do time series charts really compare time series?" >Do time series charts really compare time series?</a> about time series being difficult to compare. The chart he discussed showed the cost of energy for three different heating methods. Says Nicolas, &#8220;The lines suggest that the price for heating oil has exploded, while electricity and natural gas have increased moderately.&#8221;</p>
<p align="center"><img title="original home heating price chart" src="http://peltiertech.com/WordPress/wp-content/img200809/bissantzfuel.jpg" alt="original home heating price chart" /> <img title="original home heating price data" src="http://peltiertech.com/WordPress/wp-content/img200809/bissantzdata.png" alt="original home heating price data" /></p>
<p>When we calculate the percentage change as in the table above, we see that the middle green curve for electicity has actually risen more slowly than the other two fuels, and the natural gas curve isn&#8217;t far behind heating oil in terms of relative increase.<span id="more-523"></span></p>
<p>Nicolas goes on to discuss absolute and relative increases, and uses changes in the data (point-to-point changes or slopes) to make his point. HIs point is well taken, that the absolute linear scale on the vertical axis leads to incorrect conclusions. Rather than calculate a lot of slopes, and present the data in different terms than the original chart shows, there&#8217;s an easier approach: <strong>use a logarithmic value axis</strong>. I recreated Nicolas&#8217; table, then connected the endpoints in a linear scale chart and a logarithmic scale chart.</p>
<p align="center"><img title="original home heating prices" src="http://peltiertech.com/WordPress/wp-content/img200809/fueldata01.png" alt="original home heating prices" /></p>
<p align="center"><img title="linear home heating chart" src="http://peltiertech.com/WordPress/wp-content/img200809/fuellinear.png" alt="linear home heating chart" /> <img title="logarithmic home heating chart" src="http://peltiertech.com/WordPress/wp-content/img200809/fuellog01.png" alt="logarithmic home heating chart" /></p>
<p>The logarithmic scale on the right preserves the price values, while converting the slopes from absolute changes (where heating oil dwarfs the other two fuels) to relative changes (where electricity shows the slowest rise).</p>
<p>The use of a logarithmic scale is nothing new, of course. Financial data has long been presented on this basis, which facilitates comparisons between a $20 stock and a $30 stock, without requiring the reader to perform mental calculations.</p>
<p>This concludes the theoretical portion of today&#8217;s post.</p>
<p><strong>How to make a nice logarithmic scale</strong></p>
<p>Excel allows you to convert a linear value axis to a logarithmic value axis. Simply check the Logarithmic Scale box near the scale parameter settings. The result is okay (below left), but far from perfect. Up through Excel 2003, the axis could only begin, end, and show labels on a power of ten; Excel 2007 allows you to change the base of the log scale, a real improvement, but the labeling options are still limited to powers of the base (below right with a log base of 2).</p>
<p align="center"><img title="Excel 2003 default log home heating chart" src="http://peltiertech.com/WordPress/wp-content/img200809/fuellog00.png" alt="Excel 2003 default log home heating chart" /> <img title="Excel 2007 default log home heating chart" src="http://peltiertech.com/WordPress/wp-content/img200809/fuellog2007.png" alt="Excel 2007 default log home heating chart" /></p>
<p>So how did I get a nice log axis scale above? I rolled by own axis. Here is the data I used. In cells B6 and B7 I inserted &#8220;good&#8221; endpoints for my scale; I used worksheet cells to make it easy to adjust the calculations. I computed logarithmic values in E2:F4 using this formula in E2 and filling it into the range:</p>
<pre class="vba">=(LOG(B2)-LOG($B$6))/(LOG($B$7)-LOG($B$6))
&nbsp;</pre>
<p>I put &#8220;good&#8221; tick labels in C10:C16, calculated the corresponding axis values in B10:B16 using this formula in B10:</p>
<pre class="vba">=(LOG(C10)-LOG($B$6))/(LOG($B$7)-LOG($B$6))
&nbsp;</pre>
<p>and I put the year 1990 into A10:A16. When I construct a dummy XY series for my new axis, A10:A16 will contain X values, B10:B16 Y values, and C10:C16 data labels for the series. The value of 0.5 in cell C9 will control the length of tick marks (i.e., error bars) on this dummy series.</p>
<p align="center"><img title="extended home heating prices" src="http://peltiertech.com/WordPress/wp-content/img200809/fueldata02.png" alt="extended home heating prices" /></p>
<p>I selected A1:A4, then held Ctrl while selecting E1:F4, so both areas were highlighted, and created an XY chart with series in rows. These are the trends I want to show, but the axis scale does not show the actual prices.</p>
<p align="center"><img title="Lesson: log scale home heating chart" src="http://peltiertech.com/WordPress/wp-content/img200809/fuellog02.png" alt="Lesson: log scale home heating chart" /></p>
<p>I copied A9:B16, selected the chart, and used Paste Special to add the data as a new series, by column, with categories (X values) in the first column and series name in the first row.</p>
<p align="center"><img title="Lesson: log scale home heating chart" src="http://peltiertech.com/WordPress/wp-content/img200809/fuellog04.png" alt="Lesson: log scale home heating chart" /></p>
<p>I added custom positive horizontal (X) error bars to this new series, using cell C9 for the custom error bar value.</p>
<p align="center"><img title="Lesson: log scale home heating chart" src="http://peltiertech.com/WordPress/wp-content/img200809/fuellog05.png" alt="Lesson: log scale home heating chart" /></p>
<p>I hid the series by formatting it to show no line and no marker.</p>
<p align="center"><img title="Lesson: log scale home heating chart" src="http://peltiertech.com/WordPress/wp-content/img200809/fuellog06.png" alt="Lesson: log scale home heating chart" /></p>
<p>I formatted the error bars to use medium gray to match the axis line color, and to draw just the bar without the end cap.</p>
<p align="center"><img title="Lesson: log scale home heating chart" src="http://peltiertech.com/WordPress/wp-content/img200809/fuellog07.png" alt="Lesson: log scale home heating chart" /></p>
<p>I hid the Y axis tick marks and tick labels.</p>
<p align="center"><img title="Lesson: log scale home heating chart" src="http://peltiertech.com/WordPress/wp-content/img200809/fuellog08.png" alt="Lesson: log scale home heating chart" /></p>
<p>Finally I added data labels to the dummy series, using the contents of C10:C16. You can do this by adding any data labels and manually changing the text of each, but I use <a href="http://appspro.com/" rel="nofollow" title="Applications Professionals" >Rob Bovey</a>&#8217;s free <a href="http://appspro.com/Utilities/ChartLabeler.htm" rel="nofollow" title="Chart Labeler" >Chart Labeler</a> for this. <a href="http://spreadsheetpage.com/" rel="nofollow" title="Mr. Spreadsheet" >John Walkenbach</a> makes a similar utility, <a href="http://spreadsheetpage.com/index.php/file/j_walk_chart_tools_add_in/" rel="nofollow" title="J-Walk Chart Tools" >Chart Tools</a>.</p>
<p align="center"><img title="nice log scale home heating chart" src="http://peltiertech.com/WordPress/wp-content/img200809/fuellog01.png" alt="nice log scale home heating chart" /></p>
<p>This nicely drawn logarithmic scale chart easily shows relative prices as well as relative changes in price.</p>



Bookmark and share this entry:


	<a rel="nofollow"  href="http://twitter.com/home?status=Logarithmic%20Axis%20Scales%20-%20http%3A%2F%2Fpeltiertech.com%2FWordPress%2Flogarithmic-axis-scales%2F" title="Twitter"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Flogarithmic-axis-scales%2F&amp;title=Logarithmic%20Axis%20Scales&amp;bodytext=Dr.%20Nicolas%20Bissantz%20wrote%20in%20Do%20time%20series%20charts%20really%20compare%20time%20series%3F%20about%20time%20series%20being%20difficult%20to%20compare.%20The%20chart%20he%20discussed%20showed%20the%20cost%20of%20energy%20for%20three%20different%20heating%20methods.%20Says%20Nicolas%2C%20%22The%20lines%20suggest%20that%20" title="Digg"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Flogarithmic-axis-scales%2F&amp;t=Logarithmic%20Axis%20Scales" title="Facebook"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Flogarithmic-axis-scales%2F&amp;title=Logarithmic%20Axis%20Scales&amp;source=Peltier+Tech+Blog+Peltier+Tech+Excel+Charts+and+Programming+Blog&amp;summary=Dr.%20Nicolas%20Bissantz%20wrote%20in%20Do%20time%20series%20charts%20really%20compare%20time%20series%3F%20about%20time%20series%20being%20difficult%20to%20compare.%20The%20chart%20he%20discussed%20showed%20the%20cost%20of%20energy%20for%20three%20different%20heating%20methods.%20Says%20Nicolas%2C%20%22The%20lines%20suggest%20that%20" title="LinkedIn"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Flogarithmic-axis-scales%2F&amp;title=Logarithmic%20Axis%20Scales&amp;notes=Dr.%20Nicolas%20Bissantz%20wrote%20in%20Do%20time%20series%20charts%20really%20compare%20time%20series%3F%20about%20time%20series%20being%20difficult%20to%20compare.%20The%20chart%20he%20discussed%20showed%20the%20cost%20of%20energy%20for%20three%20different%20heating%20methods.%20Says%20Nicolas%2C%20%22The%20lines%20suggest%20that%20" title="del.icio.us"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Flogarithmic-axis-scales%2F" title="Technorati"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Flogarithmic-axis-scales%2F&amp;title=Logarithmic%20Axis%20Scales" title="StumbleUpon"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Flogarithmic-axis-scales%2F&amp;title=Logarithmic%20Axis%20Scales&amp;annotation=Dr.%20Nicolas%20Bissantz%20wrote%20in%20Do%20time%20series%20charts%20really%20compare%20time%20series%3F%20about%20time%20series%20being%20difficult%20to%20compare.%20The%20chart%20he%20discussed%20showed%20the%20cost%20of%20energy%20for%20three%20different%20heating%20methods.%20Says%20Nicolas%2C%20%22The%20lines%20suggest%20that%20" title="Google Bookmarks"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Flogarithmic-axis-scales%2F&amp;title=Logarithmic%20Axis%20Scales" title="Reddit"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Flogarithmic-axis-scales%2F&amp;t=Logarithmic%20Axis%20Scales" title="MySpace"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=Logarithmic%20Axis%20Scales&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Flogarithmic-axis-scales%2F" title="Slashdot"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Flogarithmic-axis-scales%2F&amp;submitHeadline=Logarithmic%20Axis%20Scales&amp;submitSummary=Dr.%20Nicolas%20Bissantz%20wrote%20in%20Do%20time%20series%20charts%20really%20compare%20time%20series%3F%20about%20time%20series%20being%20difficult%20to%20compare.%20The%20chart%20he%20discussed%20showed%20the%20cost%20of%20energy%20for%20three%20different%20heating%20methods.%20Says%20Nicolas%2C%20%22The%20lines%20suggest%20that%20&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Flogarithmic-axis-scales%2F&amp;t=Logarithmic%20Axis%20Scales&amp;s=Dr.%20Nicolas%20Bissantz%20wrote%20in%20Do%20time%20series%20charts%20really%20compare%20time%20series%3F%20about%20time%20series%20being%20difficult%20to%20compare.%20The%20chart%20he%20discussed%20showed%20the%20cost%20of%20energy%20for%20three%20different%20heating%20methods.%20Says%20Nicolas%2C%20%22The%20lines%20suggest%20that%20" title="Tumblr"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://peltiertech.com/WordPress/logarithmic-axis-scales/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Choice of Category Axis Order</title>
		<link>http://peltiertech.com/WordPress/choice-of-category-axis-order/</link>
		<comments>http://peltiertech.com/WordPress/choice-of-category-axis-order/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 01:49:14 +0000</pubDate>
		<dc:creator>Jon Peltier</dc:creator>
				<category><![CDATA[Chart Axes]]></category>
		<category><![CDATA[Easter]]></category>

		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=268</guid>
		<description><![CDATA[In the Calculating Easter post on John Walkenbach&#8217;s new Spreadsheet Page blog, John presented a bar chart showing the occurrences of the dates of Easter between 1900 and 2199. He sorted his dates in decreasing order of occurrence (below left). In Gradients, Fills, and Shadows, Oh My I proposed sorting in date order (below right).
 [...]]]></description>
			<content:encoded><![CDATA[<p>In the <a href="http://spreadsheetpage.com/index.php/tip/calculating_easter/" rel="nofollow" title="Calculating Easter" >Calculating Easter</a> post on <strong>John Walkenbach</strong>&#8217;s new <a href="http://spreadsheetpage.com/" rel="nofollow" title="The Spreadsheet Page" >Spreadsheet Page</a> blog, John presented a bar chart showing the occurrences of the dates of Easter between 1900 and 2199. He sorted his dates in decreasing order of occurrence (below left). In <a href="http://peltiertech.com/WordPress/2008/08/10/gradients-fills-and-shadows-oh-my/"title="Gradients, Fills, and Shadows, Oh My" >Gradients, Fills, and Shadows, Oh My</a> I proposed sorting in date order (below right).</p>
<p align="center"><img title="Easter Pareto Chart" src="http://peltiertech.com/WordPress/wp-content/img200808/easterparetoJW2.png" alt="J-Walk's Easter Chart" /> <img title="Easter Pareto Chart" src="http://peltiertech.com/WordPress/wp-content/img200808/easterbydateJW2.png" alt="JP's Easter Chart" /></p>
<p>There are advantages to both sorting techniques. The sorting by occurrence (left), as in a Pareto chart, makes it easy to see which item has the largest or smallest incidence, and if you need to take a particular action, you can simply start at one end of the list and work your way to the other.</p>
<p>Often when people have plot this kind of data, instead of sorting by incidence, they will sort in alphabetical order. This is generally not so useful, because alphabetical sorting is rather arbitrary: only the incidence has a quantitative meaning.</p>
<p>Dates, however, have a quantitative meaning, an order all their own. You can use a Pareto sort, as John has, or a date-order sort, as I have. If you are concerned only with the absolute incidences, then the Pareto sort makes sense. If you are interested in the distribution of incidences over your range of dates, then the date-order sort is more useful. It might help you see that certain days of the week or months of the year tend to have higher incidences.</p>
<p>Another advantage of the date-order sorting (or another numerical sorting in a histogram) is that, if you are pressed for space and compress the chart, you can leave out category labels without deleting information from the chart. In the chart below right, I know that 17-Apr fits right between 16-Apr and 18-Apr. In the incidence sorting below left, I can only guess where 17-Apr fits (between 15-Apr and 30-Mar), and if the incidences changed, I would have to guess again where to find 17-Apr.</p>
<p align="center"><img title="Easter Pareto Chart" src="http://peltiertech.com/WordPress/wp-content/img200808/easterparetoJW3.png" alt="J-Walk's Easter Chart" /> <img title="Easter Pareto Chart" src="http://peltiertech.com/WordPress/wp-content/img200808/easterbydateJW3.png" alt="JP's Easter Chart" /></p>
<p>I couldn&#8217;t think of a good way to plot the way that dates move around as the sampling size of Easter dates changes. I made this table showing the incidences of the date of Easter sorted by occurrence, for 100, 200, 300, 400, and 500 years. I highlighted some arbitrary dates, showing how they move around. Some dates stay relatively close to the same position, but some move up and down many rankings. This rearrangement of the scale makes any comparisons meaningless.</p>
<p align="center"><img title="Sorted Easter Dates" src="http://peltiertech.com/WordPress/wp-content/img200808/easterranktable.png" alt="Sorted Easter Dates" /></p>
<p>In contrast, the dates in the date-order stay in the same order. By definition. I can plot the curves for 100 through 500 sample points together, and see that they follow roughly the same distribution, and I can plot the curves separately and see the same thing. Even though there may be some movement from one curve to the other, it is easier to understand the charted behavior.</p>
<p align="center"><img title="Sorted Easter Dates" src="http://peltiertech.com/WordPress/wp-content/img200808/easterlinesbynumber.png" alt="Sorted Easter Dates" /></p>
<p align="center"><img title="Sorted Easter Dates" src="http://peltiertech.com/WordPress/wp-content/img200808/easterlinessplitbynumber.png" alt="Sorted Easter Dates" /></p>
<p>Another reason why I was interested in the distribution by date was for a comparison of the dates of Easter calculated by Western Christians (i.e., the Roman dates) and those calculated by Orthodox Christians (i,.e., the Greek dates). This is part of a topic for an upcoming post, but I&#8217;ll illustrate the utility of the date-order scale here.</p>
<p>I can plot the two Easter date distributions either together (first chart below) or in separate panels (second chart below. I can see that the distributions are similar in shape, but offset by about two weeks (the Greeks place Easter about two weeks later on average than do the Romans). I&#8217;ve displayed only every third date, but I don&#8217;t need the missing ones to understand the distributions. A comparison of two Pareto charts would yield no meaningful observations.</p>
<p align="center"><img title="Greek and Roman Easter Dates" src="http://peltiertech.com/WordPress/wp-content/img200808/easterGrecoRoman1.png" alt="Greek and Roman Easter Dates" /></p>
<p align="center"><img title="Greek and Roman Easter Dates" src="http://peltiertech.com/WordPress/wp-content/img200808/easterGrecoRoman2.png" alt="Greek and Roman Easter Dates" /></p>



Bookmark and share this entry:


	<a rel="nofollow"  href="http://twitter.com/home?status=Choice%20of%20Category%20Axis%20Order%20-%20http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fchoice-of-category-axis-order%2F" title="Twitter"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fchoice-of-category-axis-order%2F&amp;title=Choice%20of%20Category%20Axis%20Order&amp;bodytext=In%20the%20Calculating%20Easter%20post%20on%20John%20Walkenbach%27s%20new%20Spreadsheet%20Page%20blog%2C%20John%20presented%20a%20bar%20chart%20showing%20the%20occurrences%20of%20the%20dates%20of%20Easter%20between%201900%20and%202199.%20He%20sorted%20his%20dates%20in%20decreasing%20order%20of%20occurrence%20%28below%20left%29.%20In%20Gra" title="Digg"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fchoice-of-category-axis-order%2F&amp;t=Choice%20of%20Category%20Axis%20Order" title="Facebook"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fchoice-of-category-axis-order%2F&amp;title=Choice%20of%20Category%20Axis%20Order&amp;source=Peltier+Tech+Blog+Peltier+Tech+Excel+Charts+and+Programming+Blog&amp;summary=In%20the%20Calculating%20Easter%20post%20on%20John%20Walkenbach%27s%20new%20Spreadsheet%20Page%20blog%2C%20John%20presented%20a%20bar%20chart%20showing%20the%20occurrences%20of%20the%20dates%20of%20Easter%20between%201900%20and%202199.%20He%20sorted%20his%20dates%20in%20decreasing%20order%20of%20occurrence%20%28below%20left%29.%20In%20Gra" title="LinkedIn"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fchoice-of-category-axis-order%2F&amp;title=Choice%20of%20Category%20Axis%20Order&amp;notes=In%20the%20Calculating%20Easter%20post%20on%20John%20Walkenbach%27s%20new%20Spreadsheet%20Page%20blog%2C%20John%20presented%20a%20bar%20chart%20showing%20the%20occurrences%20of%20the%20dates%20of%20Easter%20between%201900%20and%202199.%20He%20sorted%20his%20dates%20in%20decreasing%20order%20of%20occurrence%20%28below%20left%29.%20In%20Gra" title="del.icio.us"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fchoice-of-category-axis-order%2F" title="Technorati"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fchoice-of-category-axis-order%2F&amp;title=Choice%20of%20Category%20Axis%20Order" title="StumbleUpon"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fchoice-of-category-axis-order%2F&amp;title=Choice%20of%20Category%20Axis%20Order&amp;annotation=In%20the%20Calculating%20Easter%20post%20on%20John%20Walkenbach%27s%20new%20Spreadsheet%20Page%20blog%2C%20John%20presented%20a%20bar%20chart%20showing%20the%20occurrences%20of%20the%20dates%20of%20Easter%20between%201900%20and%202199.%20He%20sorted%20his%20dates%20in%20decreasing%20order%20of%20occurrence%20%28below%20left%29.%20In%20Gra" title="Google Bookmarks"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fchoice-of-category-axis-order%2F&amp;title=Choice%20of%20Category%20Axis%20Order" title="Reddit"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fchoice-of-category-axis-order%2F&amp;t=Choice%20of%20Category%20Axis%20Order" title="MySpace"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=Choice%20of%20Category%20Axis%20Order&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fchoice-of-category-axis-order%2F" title="Slashdot"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fchoice-of-category-axis-order%2F&amp;submitHeadline=Choice%20of%20Category%20Axis%20Order&amp;submitSummary=In%20the%20Calculating%20Easter%20post%20on%20John%20Walkenbach%27s%20new%20Spreadsheet%20Page%20blog%2C%20John%20presented%20a%20bar%20chart%20showing%20the%20occurrences%20of%20the%20dates%20of%20Easter%20between%201900%20and%202199.%20He%20sorted%20his%20dates%20in%20decreasing%20order%20of%20occurrence%20%28below%20left%29.%20In%20Gra&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fchoice-of-category-axis-order%2F&amp;t=Choice%20of%20Category%20Axis%20Order&amp;s=In%20the%20Calculating%20Easter%20post%20on%20John%20Walkenbach%27s%20new%20Spreadsheet%20Page%20blog%2C%20John%20presented%20a%20bar%20chart%20showing%20the%20occurrences%20of%20the%20dates%20of%20Easter%20between%201900%20and%202199.%20He%20sorted%20his%20dates%20in%20decreasing%20order%20of%20occurrence%20%28below%20left%29.%20In%20Gra" title="Tumblr"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://peltiertech.com/WordPress/choice-of-category-axis-order/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Excel Category Axis Types</title>
		<link>http://peltiertech.com/WordPress/excel-category-axis-types/</link>
		<comments>http://peltiertech.com/WordPress/excel-category-axis-types/#comments</comments>
		<pubDate>Mon, 21 Jul 2008 13:15:38 +0000</pubDate>
		<dc:creator>Jon Peltier</dc:creator>
				<category><![CDATA[Chart Axes]]></category>
		<category><![CDATA[Line Chart]]></category>
		<category><![CDATA[xy chart]]></category>

		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=156</guid>
		<description><![CDATA[In Line Charts vs. XY Charts I described the difference between these two Excel chart types. There is no difference in the ways you can format the series, so perhaps the names of the chart types are confusing. The differences are in the ways their respective X axes treat the X data. I discussed the [...]]]></description>
			<content:encoded><![CDATA[<p>In <a href="http://peltiertech.com/WordPress/line-charts-vs-xy-charts/"title="Line Charts vs. XY Charts" >Line Charts vs. XY Charts</a> I described the difference between these two Excel chart types. There is no difference in the ways you can format the series, so perhaps the names of the chart types are confusing. The differences are in the ways their respective X axes treat the X data. I discussed the differences in that post, and in <a href="http://peltiertech.com/WordPress/line-xy-combination-charts/"title="Line-XY Combination Charts" >Line-XY Combination Charts</a> I showed how to make a combination Line-XY chart that combines the nice date formatting of a Line chart&#8217;s date scale axis with the more flexible plotting that an XY chart allows along the X axis.</p>
<p>In this post I will illustrate the behavior of the different category types in more detail.<span id="more-156"></span></p>
<p><em><strong>Categorical Data</strong></em></p>
<p>The following data has a column of category labels for X and a column of numerical values for Y.</p>
<p align="center"><img title="Categorical X data" src="http://peltiertech.com/WordPress/wp-content/img200807/DataCats.png" alt="Categorical X data" width="155" height="137" /></p>
<p>The default Line and Column charts are shown below. The categories are completely visible in the chart, because the value (Y) axis is set to cross the category (X) axis between categories, the default setting for line and column charts.</p>
<p align="center"><img title="Line Chart - Categorical X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/LineCat1.png" alt="Line Chart - Categorical X Axis" width="192" height="136" /> <img title="Column Chart - Categorical X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/ColCat1.png" alt="Column Chart - Categorical X Axis" width="192" height="136" /></p>
<p>Below, the value (Y) axis is set <em>not</em> to cross the category (X) axis between categories, so the first and last categories are only halfway visible.</p>
<p align="center"><img title="Line Chart - Categorical X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/LineCat2.png" alt="Line Chart - Categorical X Axis" width="192" height="136" /> <img title="Column Chart - Categorical X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/ColCat2.png" alt="Column Chart - Categorical X Axis" width="192" height="136" /></p>
<p>The default Area chart is shown below left. Unlike the Line and Column charts, its default is for the value (Y) axis <em>not</em> to cross the category (X) axis between categories. When the value (Y) axis is set to cross the category (X) axis between categories, there is a gap between the edges of the filled area and the edges of the chart (below right).</p>
<p align="center"><img title="Area Chart - Categorical X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/AreaCat1.png" alt="Area Chart - Categorical X Axis" width="192" height="136" /> <img title="Area Chart - Categorical X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/AreaCat2.png" alt="Area Chart - Categorical X Axis" width="192" height="136" /></p>
<p>A default bar chart has its category (X) axis along the vertical axis, and the bars extend horizontally parallel to the value (Y) axis. Note that the vertical axis is the X axis and the horizontal axis is the Y axis, unlike the convention in most charts. This is a common confusion for newcomers to Excel&#8217;s charts.</p>
<p align="center"><img title="Bar Chart - Categorical X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/BarCat.png" alt="Bar Chart - Categorical X Axis" width="192" height="136" /></p>
<p>Here is an XY chart made using text labels for its X values. An XY chart has a value-based X axis, like its Y axis. Excel cannot plot nonnumerical data in a chart, so instead of the text labels, Excel inserts counting numbers, 1 for the first label, 2 for the second, etc. Nonnumerical values used for Y values in any chart are treated as zeros.</p>
<p align="center"><img title="XY Chart - Value X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/XYCat.png" alt="XY Chart - Value X Axis" width="192" height="136" /></p>
<p><em><strong>Numerical Data</strong></em></p>
<p>The following data has a column of numerical values for X and a column of numerical values for Y.</p>
<p align="center"><img title="Numerical X data" src="http://peltiertech.com/WordPress/wp-content/img200807/DataNumbers.png" alt="Numerical X data" width="155" height="137" /></p>
<p>Here are default Line and Column charts made using numerical values for their X values. The category (X) axis treats the X values as labels, despite their numerical character, so along the X axis points are spaced equally, not spaced according to the numerical values.</p>
<p align="center"><img title="Line Chart - Numerical X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/LineNumbers.png" alt="Line Chart - Numerical X Axis" width="192" height="136" /> <img title="Column Chart - Numerical X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/ColNumbers.png" alt="Column Chart - Numerical X Axis" width="192" height="136" /></p>
<p>Here is an XY chart made using numbers for its X values. Of course, this is what XY charts were designed for, so both the X and Y numbers are plotted along the X and Y axes according to their numerical values.</p>
<p align="center"><img title="XY Chart - Value X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/XYNumbers.png" alt="XY Chart - Value X Axis" width="192" height="136" /></p>
<p><em><strong>Dates</strong></em></p>
<p>The following data has a column of date for X and a column of numerical values for Y.</p>
<p align="center"><img title="Date X data" src="http://peltiertech.com/WordPress/wp-content/img200807/DataDates.png" alt="Date X data" width="155" height="137" /></p>
<p>The default Line and Column charts using this data are shown below. Unlike the treatment of text or numbers as nonnumeric category labels, the dates are treated as numerical dates, with the spacing between points proportional to the number of days between points. By default, the X axis stretches from the first date to the last, and Excel has chosen a &#8220;nice&#8221; X axis spacing of 7 days (one week).</p>
<p align="center"><img title="Line Chart - Date-Scale X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/LineDate.png" alt="Line Chart - Date-Scale X Axis" width="192" height="136" /> <img title="Column Chart - Date-Scale X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/ColDate.png" alt="Column Chart - Date-Scale X Axis" width="192" height="136" /></p>
<p>Here is an XY chart made using dates for its X values. Like the Line and Column charts shown above, the spacing of points along the X axis is proportional to the date value of the X data. The axis scale parameters are chosen as for any other value axis. The minimum, 12/29/2007, is day number 39445 in Excel&#8217;s date-time system*, the maximum, 2/7/2008, is day number 39485, and the spacing is 5 days. The formatting of the Line chart&#8217;s date-scale axis is much nicer.</p>
<p align="center"><img title="XY Chart - Date X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/XYDate.png" alt="XY Chart - Date X Axis" width="192" height="136" /></p>
<p style="padding-left: 30px;">* Excel stores dates and times as a mixed number: the whole number part is the number of days since January 1, 1900, and the fractional part is the fraction of the day elapsed since midnight (e.g., noon = 0.5, 6 pm = 0.75).</p>
<p><em><strong>Weekly Dates</strong></em></p>
<p>The superiority of Excel&#8217;s date-scale axis for a chart&#8217;s X axis is better illustrated with a broader range of dates. This table shows Friday dates for the first three months of 2008.</p>
<p align="center"><img title="Weekly Date X data" src="http://peltiertech.com/WordPress/wp-content/img200807/DataWeeks.png" alt="Weekly Date X data" width="162" height="256" /></p>
<p>The default Line and Column charts using this data are shown below. The X axis stretches from the first date to the last, and Excel has chosen a &#8220;nice&#8221; calendar-related X axis spacing of 14 days (two weeks). The column chart illustrates a &#8220;problem&#8221; people have with using column charts with date-scale axes. The columns are very thin, and there is no way to make them much wider. Even changing the gap width to zero, which makes adjacent columns touch each other, leaves a large gap. This gap is created by the date-scale axis itself, which provides a slot for each day along the axis. Weekly data then consists of one data point followed by six blank slots before the next data point. Since line charts are generally a better tool to illustrate time series data, this is just one more reason not to use a column chart in this context.</p>
<p align="center"><img title="Line Chart - Date-Scale X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/LineWeek1.png" alt="Line Chart - Date-Scale X Axis" width="256" height="170" /> <img title="Column Chart - Date-Scale X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/ColWeek1.png" alt="Column Chart - Date-Scale X Axis" width="256" height="170" /></p>
<p>The corresponding XY chart is shown below. Its X axis scale is not calendar based, starting on Monday, 12/24/2007 (day 39440), and ending on Wednesday, 4/2/2008 (day 39540), with a tick spacing of 10 days.</p>
<p align="center"><img title="XY Chart - Date X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/XYWeek1.png" alt="XY Chart - Date X Axis" width="256" height="170" /></p>
<p>We can clean up the Line chart&#8217;s X axis by removing the year and rotating the resulting labels (below left) and fix up the XY chart&#8217;s X axis in the same way, and also by incorporating week-based scale parameters (below right). The charts are essentially identical.</p>
<p align="center"><img title="Line Chart - Date-Scale X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/LineWeek2.png" alt="Line Chart - Date-Scale X Axis" width="256" height="170" /> <img title="XY Chart - Date X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/XYWeek2.png" alt="XY Chart - Date X Axis" width="256" height="170" /></p>
<p>If we format the date-scale axis to show months, the Line chart does so nicely, with a tick mark at the beginning of each month, regardless of the number of days in the preceding month. The XY chart comes up short, because we have to use a &#8220;best-fit&#8221; major unit, in this case, 30-1/3 days. January is represented in two tick mark labels and February not at all along the XY chart&#8217;s X axis.</p>
<p align="center"><img title="Line Chart - Date-Scale X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/LineWeek3.png" alt="Line Chart - Date-Scale X Axis" width="256" height="170" /> <img title="XY Chart - Date X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/XYWeek3.png" alt="XY Chart - Date X Axis" width="256" height="170" /></p>
<p>Taken over a whole year, with a &#8220;best-fit&#8221; major unit of 30-1/2 days per month (366 days/12 months), the XY chart (shown under the Line chart, below) is even less appealing. January is shown in two tick mark labels, February not at all, and three months (March, May, and July) on the second of the month, not the first.</p>
<p align="center"><img title="Line Chart - Date-Scale X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/LineYear.png" alt="Line Chart - Date-Scale X Axis" width="384" height="85" /><br />
 <img title="XY Chart - Date X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/XYYear.png" alt="XY Chart - Date X Axis" width="384" height="85" /></p>
<p>It is for this reason that I will often use a Line-XY combination chart: I get the benefit of the Line chart&#8217;s nice date-scale axis without the Line chart&#8217;s requirement that all series use the same X values.</p>
<p><em><strong>Axis Types (Chart Options)</strong></em></p>
<p>The axis types shown above for the Line, Column, and Area charts were assigned automatically by Excel, based on the X values data. You can actually tell Excel which type to use. For example, in your chart of stock prices, Excel plots every value by date, and leaves gaps in the chart for Saturdays and Sundays. You can omit the gaps by forcing Excel to use a Category type axis instead of a Date-Scale axis. In Excel 2003 and earlier, you can select Chart Options from the Chart menu, and the Axes tab of the resulting dialog lets you select which axes to use in the chart (in Excel 2007 these options are available on the Format Axis dialog). In the Line chart&#8217;s dialog (below left), the three options Automatic, Category, and Time-Scale (correctly renamed &#8220;Date-Scale&#8221; in Excel 2007) are available for selection. In the XY chart&#8217;s dialog (below right) these options are visible but disabled.</p>
<p align="center"><img title="Chart Options Axes Tab for Line Chart" src="http://peltiertech.com/WordPress/wp-content/img200807/ChartOptionsAxesLine.png" alt="Chart Options Axes Tab for Line Chart" width="144" height="179" /> <span style="color: white;">&#8212;-</span> <img title="Chart Options Axes Tab for XY Chart" src="http://peltiertech.com/WordPress/wp-content/img200807/ChartOptionsAxesXY.png" alt="Chart Options Axes Tab for XY Chart" width="144" height="179" /></p>
<p>In the following pairs of charts, the left hand one uses the Automatic (Category) axis, while the right hand one uses the Date-Scale type. The left hand charts, repeated from above, treat numerical X data as nonnumerical categories. In the right hand charts, the numbers in the X data are forced to be interpreted numerically, and plotted proportionally, not uniformly. The right hand charts are horizontally compressed because Excel leaves room for the longer axis tick labels which may extend beyond the plot area. The dates begin with day 1 (January 1, 1900).</p>
<p align="center"><img title="Line Chart - Category X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/LineNumbers.png" alt="Line Chart - Category X Axis" width="192" height="136" /> <img title="Line Chart - Date-Scale X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/LineNumbersDate1.png" alt="Line Chart - Date-Scale X Axis" width="192" height="136" /></p>
<p align="center"><img title="Column Chart - Category X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/ColNumbers.png" alt="Column Chart - Category X Axis" width="192" height="136" /> <img title="Column Chart - Date-Scale X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/ColNumbersDate.png" alt="Column Chart - Date-Scale X Axis" width="192" height="136" /></p>
<p>The Line chart (above right) can almost be converted into an XY chart, by changing the X axis number format from a date format to a numerical format (such as &#8220;General&#8221;), setting the value axis not to cross between categories, and choosing appropriate scale parameters. Of course, it&#8217;s not perfect; since the first day in Excel&#8217;s date-time system is 1/1/1900, the smallest value that can be used as the X axis minimum is 1, not 0.</p>
<p align="center"><img title="Line Chart - Category X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/LineNumbersDate2.png" alt="Line Chart - Date-Scale X Axis" width="192" height="136" /></p>
<p>This technique comes in handy when combining an XY chart with an area chart, to fill the area <a href="http://peltiertech.com/Excel/Charts/XYAreaChart.html" rel="nofollow" title="XY Area Chart: Fill Below an XY Series" >under</a> or <a href="http://peltiertech.com/Excel/Charts/XYAreaChart2.html" rel="nofollow" title="XY Area Chart: Fill Between XY Series" >between</a> XY chart series.</p>
<p align="center"><a href="http://peltiertech.com/Excel/Charts/XYAreaChart.html" rel="nofollow" title="XY Area Chart: Fill Below an XY Series" ><img title="XY Area Chart: Fill Below an XY Series" src="http://peltiertech.com/WordPress/wp-content/img200807/FillBelow.png" alt="XY Area Chart: Fill Below an XY Series" width="192" height="136" /></a> <a href="http://peltiertech.com/Excel/Charts/XYAreaChart2.html" rel="nofollow" title="XY Area Chart: Fill Between XY Series" ><img src="http://peltiertech.com/WordPress/wp-content/img200807/FillBetween.png" alt="" width="192" height="136" /></a></p>
<p>In the following pairs of charts, the left hand one uses the Automatic (Date-Scale) axis, while the right hand one uses the Category type. The left hand charts, repeated from above, plot the dates in their X values proportionally. In the right hand charts, the dates are plotted uniformly, not proportionally.</p>
<p align="center"><img title="Line Chart - Date-Scale X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/LineDate.png" alt="Line Chart - Date-Scale X Axis" width="192" height="136" /> <img title="Line Chart - Category X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/LineDateCat.png" alt="Line Chart - Category X Axis" width="192" height="136" /></p>
<p align="center"><img title="Column Chart - Date-Scale X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/ColDate.png" alt="Column Chart - Date-Scale X Axis" width="192" height="136" /> <img title="Column Chart - Category X Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/ColDateCat.png" alt="Column Chart - Category X Axis" width="192" height="136" /></p>
<p>This technique is useful to plot stock data while omitting gaps for weekends. Frankly I prefer the time scale axis; the gaps where the weekends occur give me a better sense for the date values.</p>
<p align="center"><img title="Stock Chart - Date-Scale Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/StockDate.png" alt="Stock Chart - Date-Scale Axis" width="192" height="136" /> <img title="Stock Chart - Category Axis" src="http://peltiertech.com/WordPress/wp-content/img200807/StockCat.png" alt="Stock Chart - Category Axis" width="192" height="136" /></p>



Bookmark and share this entry:


	<a rel="nofollow"  href="http://twitter.com/home?status=Excel%20Category%20Axis%20Types%20-%20http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fexcel-category-axis-types%2F" title="Twitter"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fexcel-category-axis-types%2F&amp;title=Excel%20Category%20Axis%20Types&amp;bodytext=In%20Line%20Charts%20vs.%20XY%20Charts%20I%20described%20the%20difference%20between%20these%20two%20Excel%20chart%20types.%20There%20is%20no%20difference%20in%20the%20ways%20you%20can%20format%20the%20series%2C%20so%20perhaps%20the%20names%20of%20the%20chart%20types%20are%20confusing.%20The%20differences%20are%20in%20the%20ways%20their%20re" title="Digg"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fexcel-category-axis-types%2F&amp;t=Excel%20Category%20Axis%20Types" title="Facebook"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fexcel-category-axis-types%2F&amp;title=Excel%20Category%20Axis%20Types&amp;source=Peltier+Tech+Blog+Peltier+Tech+Excel+Charts+and+Programming+Blog&amp;summary=In%20Line%20Charts%20vs.%20XY%20Charts%20I%20described%20the%20difference%20between%20these%20two%20Excel%20chart%20types.%20There%20is%20no%20difference%20in%20the%20ways%20you%20can%20format%20the%20series%2C%20so%20perhaps%20the%20names%20of%20the%20chart%20types%20are%20confusing.%20The%20differences%20are%20in%20the%20ways%20their%20re" title="LinkedIn"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fexcel-category-axis-types%2F&amp;title=Excel%20Category%20Axis%20Types&amp;notes=In%20Line%20Charts%20vs.%20XY%20Charts%20I%20described%20the%20difference%20between%20these%20two%20Excel%20chart%20types.%20There%20is%20no%20difference%20in%20the%20ways%20you%20can%20format%20the%20series%2C%20so%20perhaps%20the%20names%20of%20the%20chart%20types%20are%20confusing.%20The%20differences%20are%20in%20the%20ways%20their%20re" title="del.icio.us"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fexcel-category-axis-types%2F" title="Technorati"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fexcel-category-axis-types%2F&amp;title=Excel%20Category%20Axis%20Types" title="StumbleUpon"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fexcel-category-axis-types%2F&amp;title=Excel%20Category%20Axis%20Types&amp;annotation=In%20Line%20Charts%20vs.%20XY%20Charts%20I%20described%20the%20difference%20between%20these%20two%20Excel%20chart%20types.%20There%20is%20no%20difference%20in%20the%20ways%20you%20can%20format%20the%20series%2C%20so%20perhaps%20the%20names%20of%20the%20chart%20types%20are%20confusing.%20The%20differences%20are%20in%20the%20ways%20their%20re" title="Google Bookmarks"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fexcel-category-axis-types%2F&amp;title=Excel%20Category%20Axis%20Types" title="Reddit"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fexcel-category-axis-types%2F&amp;t=Excel%20Category%20Axis%20Types" title="MySpace"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=Excel%20Category%20Axis%20Types&amp;url=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fexcel-category-axis-types%2F" title="Slashdot"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fexcel-category-axis-types%2F&amp;submitHeadline=Excel%20Category%20Axis%20Types&amp;submitSummary=In%20Line%20Charts%20vs.%20XY%20Charts%20I%20described%20the%20difference%20between%20these%20two%20Excel%20chart%20types.%20There%20is%20no%20difference%20in%20the%20ways%20you%20can%20format%20the%20series%2C%20so%20perhaps%20the%20names%20of%20the%20chart%20types%20are%20confusing.%20The%20differences%20are%20in%20the%20ways%20their%20re&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fpeltiertech.com%2FWordPress%2Fexcel-category-axis-types%2F&amp;t=Excel%20Category%20Axis%20Types&amp;s=In%20Line%20Charts%20vs.%20XY%20Charts%20I%20described%20the%20difference%20between%20these%20two%20Excel%20chart%20types.%20There%20is%20no%20difference%20in%20the%20ways%20you%20can%20format%20the%20series%2C%20so%20perhaps%20the%20names%20of%20the%20chart%20types%20are%20confusing.%20The%20differences%20are%20in%20the%20ways%20their%20re" title="Tumblr"><img src="http://peltiertech.com/WordPress/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://peltiertech.com/WordPress/excel-category-axis-types/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
