<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Pushin data like weight</title>
	<atom:link href="http://pushindatalikeweight.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://pushindatalikeweight.com</link>
	<description>information visualization and reporting</description>
	<lastBuildDate>Wed, 20 Jul 2011 23:39:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='pushindatalikeweight.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Pushin data like weight</title>
		<link>http://pushindatalikeweight.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://pushindatalikeweight.com/osd.xml" title="Pushin data like weight" />
	<atom:link rel='hub' href='http://pushindatalikeweight.com/?pushpress=hub'/>
		<item>
		<title>Visual embellishment, sledgehammers, and flyswatters</title>
		<link>http://pushindatalikeweight.com/2010/05/16/visual-embellishment-sledgehammers-and-flyswatters/</link>
		<comments>http://pushindatalikeweight.com/2010/05/16/visual-embellishment-sledgehammers-and-flyswatters/#comments</comments>
		<pubDate>Sun, 16 May 2010 15:33:53 +0000</pubDate>
		<dc:creator>pompadourofdataviz</dc:creator>
				<category><![CDATA[chart]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[sparklines]]></category>
		<category><![CDATA[chart junk]]></category>

		<guid isPermaLink="false">http://pushindatalikeweight.com/?p=161</guid>
		<description><![CDATA[The article Useful Junk? The Effects of Visual Embellishment on Comprehension and Memorability of Charts is the subject of some interesting discussion, e.g. here and here. My 2 cents follows: The study is comparing the mosquitos-killing efficacy of sledgehammers v. flyswatters. For a graph with six data points, nearly any approach would work (even a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pushindatalikeweight.com&amp;blog=10630742&amp;post=161&amp;subd=pushindatalikeweight&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The article <em><a href="http://hci.usask.ca/uploads/173-pap0297-bateman.pdf">Useful Junk? The Effects of Visual Embellishment on Comprehension and Memorability of Charts</a></em> is the subject of some interesting discussion, e.g. <a href="http://infosthetics.com/archives/2010/04/why_chart_junk_is_useful.html">here </a>and <a href="http://www.excelcharts.com/blog/no-tuftes-charts-are-not-plain-and-simple/">here</a>. My 2 cents follows:</p>
<p>The study is comparing the mosquitos-killing efficacy of sledgehammers v. flyswatters. For a graph with six data points, nearly any approach would work (even a pie!). For the presented cases, graphs are altogether unnecessary; a table or sentence would suffice: “Total House and Senate campaign expenditures increased from ~$50 to ~$300 million from 1972 to 1982!”</p>
<p>A more suitable visualization for any of these tiny data sets would be a sparkline, i.e. a word-sized graph. Effective design does not involve constructing vacuous and sprawling graphs (even well-formatted ones that make good use of color) to present virtually no data. Certain design principles are valued because they facilitate pattern-recognition and information processing among large quantities of data. Using Holmes-like embellishments to represent multiple data series with hundreds or thousands of data points would fail. This would be evident if the study took the opposite approach, namely selected exemplary data-rich graphs and converted them to Holmes-style graphs.</p>
<p>The article demonstrates that visual embellishments are more effective at marketing, i.e. having folks take notice and remember your message. (However, the study is based on 20 subjects, so I would be reluctant to draw even that conclusion.) If marketing is your goal, it’s no surprise that minimalist charts are not the best medium. Most of my work involves trying to makes sense of large quantities of complex, multidimensional data. And for that, I prefer not to use flyswatters.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pushindatalikeweight.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pushindatalikeweight.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pushindatalikeweight.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pushindatalikeweight.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pushindatalikeweight.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pushindatalikeweight.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pushindatalikeweight.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pushindatalikeweight.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pushindatalikeweight.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pushindatalikeweight.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pushindatalikeweight.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pushindatalikeweight.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pushindatalikeweight.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pushindatalikeweight.wordpress.com/161/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pushindatalikeweight.com&amp;blog=10630742&amp;post=161&amp;subd=pushindatalikeweight&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pushindatalikeweight.com/2010/05/16/visual-embellishment-sledgehammers-and-flyswatters/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/63eed16db624261122f55f10c52d7cdb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pompadourofdataviz</media:title>
		</media:content>
	</item>
		<item>
		<title>Layered and in-cell chart performance</title>
		<link>http://pushindatalikeweight.com/2010/05/07/layered-and-in-cell-chart-performance/</link>
		<comments>http://pushindatalikeweight.com/2010/05/07/layered-and-in-cell-chart-performance/#comments</comments>
		<pubDate>Fri, 07 May 2010 02:12:42 +0000</pubDate>
		<dc:creator>pompadourofdataviz</dc:creator>
				<category><![CDATA[chart]]></category>
		<category><![CDATA[dashboard]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[Layering]]></category>
		<category><![CDATA[small multiples]]></category>
		<category><![CDATA[sparklines]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[data visualization]]></category>
		<category><![CDATA[layering]]></category>
		<category><![CDATA[report design]]></category>

		<guid isPermaLink="false">http://pushindatalikeweight.com/?p=154</guid>
		<description><![CDATA[Many of my posts have presented examples of layering multiple charts on top of one another and shrinking them down to the size of a cell. I have compared this to other approaches, namely sparklines, in terms of flexibility, appearance, and ease of creation. However, performance also deserves consideration. To examine this, I created three [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pushindatalikeweight.com&amp;blog=10630742&amp;post=154&amp;subd=pushindatalikeweight&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Many of my posts have presented examples of layering multiple charts on top of one another and shrinking them down to the size of a cell. I have compared this to other approaches,<a href="http://pushindatalikeweight.com/2009/12/05/excel-2010-sparklines-v-small-multiples/"> namely sparklines</a>, in terms of flexibility, appearance, and ease of creation. However, performance also deserves consideration. To examine this, I created three versions of the <a href="http://pushindatalikeweight.com/2010/05/03/visualizing-survey-responses/">survey response dashboard</a> with the graphs produced using three different methods: (1) layered charts, as presented in the original post; (2) in-cell formulas that creates a bar [=REPT("|",F3*100]; and (3) column sparklines. I removed the stacked bar chart to simplify the comparison since there is no straight-forward formula or sparkline equivalent. And the formula and sparklines were not layered, i.e. they did no contain reference points. Instead, each row had the same data and number of graphs, i.e. 8, as the original. I examined sorting time and file size with a workbooks containing 100, 200, and 400 rows with each of these approaches. Tests were performed using Excel 2010 on a PC with Windows 7 and 8 GB of RAM. The results are presented in the following table:</p>
<p><a title="becnhmark_charting_performance by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4585110645/"><img src="http://farm5.static.flickr.com/4012/4585110645_3edfb21b69.jpg" alt="becnhmark_charting_performance" width="500" height="68" /></a></p>
<p>(<a href="http://www.flickr.com/photos/44920637@N02/4585110645/sizes/o/">Full-size pic</a>)</p>
<p>Using actual charts results in file sizes that are far larger and sort times that are slower than the alternatives. Interestingly, the file size when using formula v sparklines is essentially the same, although sparklines take roughly twice the time to sort. Clearly at some point the chart/ layering method becomes unwieldy, but it surprising how many charts can be included in a workbook while keeping the size and performance reasonable. Consider test 2: 1,600 graphs and 200 rows, yet the file size is only 2 MB and sorting takes only ~1/4  a second. For many purposes this is reasonable. The same could be said for 400 rows and 3,200 graphs; which results in a file 4 MB in size with a ~1/2 second sort time.</p>
<p>In sum, if the graph you need is available as a sparkline or formula, choosing one of those approaches will result in a smaller and quicker workbook. However, there are plenty of case where it is simpler or perhaps no alternative exists to using actual charts. If that is the cases, it is still possible to pack hundreds or thousands of charts in a single workbook.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pushindatalikeweight.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pushindatalikeweight.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pushindatalikeweight.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pushindatalikeweight.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pushindatalikeweight.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pushindatalikeweight.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pushindatalikeweight.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pushindatalikeweight.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pushindatalikeweight.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pushindatalikeweight.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pushindatalikeweight.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pushindatalikeweight.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pushindatalikeweight.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pushindatalikeweight.wordpress.com/154/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pushindatalikeweight.com&amp;blog=10630742&amp;post=154&amp;subd=pushindatalikeweight&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pushindatalikeweight.com/2010/05/07/layered-and-in-cell-chart-performance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/63eed16db624261122f55f10c52d7cdb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pompadourofdataviz</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4012/4585110645_3edfb21b69.jpg" medium="image">
			<media:title type="html">becnhmark_charting_performance</media:title>
		</media:content>
	</item>
		<item>
		<title>Visualizing survey responses</title>
		<link>http://pushindatalikeweight.com/2010/05/03/visualizing-survey-responses/</link>
		<comments>http://pushindatalikeweight.com/2010/05/03/visualizing-survey-responses/#comments</comments>
		<pubDate>Mon, 03 May 2010 02:11:57 +0000</pubDate>
		<dc:creator>pompadourofdataviz</dc:creator>
				<category><![CDATA[dashboard]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[Layering]]></category>
		<category><![CDATA[small multiples]]></category>
		<category><![CDATA[sparklines]]></category>
		<category><![CDATA[survey]]></category>
		<category><![CDATA[data visualization]]></category>
		<category><![CDATA[layering]]></category>
		<category><![CDATA[report design]]></category>

		<guid isPermaLink="false">http://pushindatalikeweight.com/?p=129</guid>
		<description><![CDATA[Often surveys contain questions involving a Likert scale or rating scale (strongly agree, agree, disagree, strongly disagree) . Visualizing this type of data can be problematic because there are many different ways of grouping and analyzing responses. A common approach to dealing with this issue it to collapse the results into two groups, e.g. strongly agree [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pushindatalikeweight.com&amp;blog=10630742&amp;post=129&amp;subd=pushindatalikeweight&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Often surveys contain questions involving a Likert scale or rating scale (strongly agree, agree, disagree, strongly disagree) . Visualizing this type of data can be problematic because there are many different ways of grouping and analyzing responses. A common approach to dealing with this issue it to collapse the results into two groups, e.g. strongly agree or agree v. disagree or strongly disagree. Another approach is to present the results in the form of a stacked bar chart. Both of these approaches have limitations. Grouping the data results in the loss of potentially valuable information, e.g. one may want to know which question had the most respondents that strongly agreed.  The stacked bar chart, while valuable for comparing cumulative values, <a href="http://peltiertech.com/WordPress/stacked-bar-chart-alternatives/">makes comparison of the individual components difficult</a>.</p>
<p>The following is example of a tool that facilitates both comparison of individual components as well as cumulative values. The tool also illustrates an effective approach to analyzing data with multiple categorical variables, which is also common among surveys. By representing the categorical variables within columns rather than across a row, we maintain the ability to filter and sort the category&#8217;s values. The tool also uses layering as a means of creating reference lines. In sum, with this approach a tremendous amount of comparisons are available within a few seconds. In previous posts I have presented <a href="http://pushindatalikeweight.com/2010/04/28/tool-v-report/">a similar tool</a>, <a href="http://pushindatalikeweight.com/2010/05/03/multiplying-graphs/">VBA to assist in small multiple creation</a>, and <a href="http://pushindatalikeweight.com/2009/12/05/excel-2010-sparklines-v-small-multiples/">layering</a>. The actual graphs in this example are a bit odd for two reasons: (1) I neglected to fix my axis, and (2) the random data I generated does not add up to 1.</p>
<p><a title="rating_scale by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4573423576/"><img src="http://farm5.static.flickr.com/4054/4573423576_10721af699.jpg" alt="rating_scale" width="500" height="152" /></a></p>
<p>(<a href="http://www.flickr.com/photos/44920637@N02/4573423576/sizes/l/">full-sized pic</a>)</p>
<p>Note: workbook provided upon request.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pushindatalikeweight.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pushindatalikeweight.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pushindatalikeweight.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pushindatalikeweight.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pushindatalikeweight.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pushindatalikeweight.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pushindatalikeweight.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pushindatalikeweight.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pushindatalikeweight.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pushindatalikeweight.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pushindatalikeweight.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pushindatalikeweight.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pushindatalikeweight.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pushindatalikeweight.wordpress.com/129/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pushindatalikeweight.com&amp;blog=10630742&amp;post=129&amp;subd=pushindatalikeweight&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pushindatalikeweight.com/2010/05/03/visualizing-survey-responses/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/63eed16db624261122f55f10c52d7cdb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pompadourofdataviz</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4054/4573423576_10721af699.jpg" medium="image">
			<media:title type="html">rating_scale</media:title>
		</media:content>
	</item>
		<item>
		<title>Multiplying graphs</title>
		<link>http://pushindatalikeweight.com/2010/05/03/multiplying-graphs/</link>
		<comments>http://pushindatalikeweight.com/2010/05/03/multiplying-graphs/#comments</comments>
		<pubDate>Mon, 03 May 2010 00:59:23 +0000</pubDate>
		<dc:creator>pompadourofdataviz</dc:creator>
				<category><![CDATA[dashboard]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[small multiples]]></category>
		<category><![CDATA[sparklines]]></category>
		<category><![CDATA[VBA]]></category>

		<guid isPermaLink="false">http://pushindatalikeweight.com/?p=127</guid>
		<description><![CDATA[In the previous post I presented a worksheet that repeated the same set of three graphs across over a hundred rows. Creating these graphs can be achieved by copying and pasting the initial row, and then pasting in the correct data. This task takes about a minute or two. However, the resulting graphs all reference [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pushindatalikeweight.com&amp;blog=10630742&amp;post=127&amp;subd=pushindatalikeweight&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In the <a href="http://pushindatalikeweight.com/2010/04/28/tool-v-report/">previous post</a> I presented a worksheet that repeated the same set of three graphs across over a hundred rows. Creating these graphs can be achieved by copying and pasting the initial row, and then pasting in the correct data. This task takes about a minute or two. However, the resulting graphs all reference data in the first row. Manually correcting adjusting the source data for over 300 graphs would be tedious and time-consuming, making it a prime candidate for automation via VBA. In this case the following did the trick:</p>
<p><code></p>
<div id="_mcePaste">Sub multiply_graphs()</div>
<div id="_mcePaste">With Worksheets("viz")</div>
<div id="_mcePaste">r = 9</div>
<div id="_mcePaste">For n = 3 To 424 Step 3</div>
<div id="_mcePaste">.ChartObjects("Chart " &amp; n).Activate</div>
<div id="_mcePaste">ActiveChart.SeriesCollection(1).Values = "=viz!H" &amp; r</div>
<div id="_mcePaste">r = r + 1</div>
<div id="_mcePaste">Next n</div>
<div id="_mcePaste">r = 9</div>
<div id="_mcePaste">For n = 4 To 425 Step 3</div>
<div id="_mcePaste">.ChartObjects("Chart " &amp; n).Activate</div>
<div id="_mcePaste">ActiveChart.SeriesCollection(1).Values = "=viz!J" &amp; r</div>
<div id="_mcePaste">r = r + 1</div>
<div id="_mcePaste">Next n</div>
<div id="_mcePaste">r = 9</div>
<div id="_mcePaste">For n = 5 To 426 Step 3</div>
<div id="_mcePaste">.ChartObjects("Chart " &amp; n).Activate</div>
<div id="_mcePaste">ActiveChart.SeriesCollection(1).Values = "=viz!M" &amp; r &amp; ":X" &amp; r</div>
<div id="_mcePaste">ActiveChart.SeriesCollection(2).Values = "=viz!Y" &amp; r &amp; ":AJ" &amp; r</div>
<div id="_mcePaste">r = r + 1</div>
<div id="_mcePaste">Next n</div>
<div id="_mcePaste">End With</div>
<div id="_mcePaste">End Sub</div>
<p></code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pushindatalikeweight.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pushindatalikeweight.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pushindatalikeweight.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pushindatalikeweight.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pushindatalikeweight.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pushindatalikeweight.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pushindatalikeweight.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pushindatalikeweight.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pushindatalikeweight.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pushindatalikeweight.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pushindatalikeweight.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pushindatalikeweight.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pushindatalikeweight.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pushindatalikeweight.wordpress.com/127/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pushindatalikeweight.com&amp;blog=10630742&amp;post=127&amp;subd=pushindatalikeweight&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pushindatalikeweight.com/2010/05/03/multiplying-graphs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/63eed16db624261122f55f10c52d7cdb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pompadourofdataviz</media:title>
		</media:content>
	</item>
		<item>
		<title>Tool v report</title>
		<link>http://pushindatalikeweight.com/2010/04/28/tool-v-report/</link>
		<comments>http://pushindatalikeweight.com/2010/04/28/tool-v-report/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 05:21:00 +0000</pubDate>
		<dc:creator>pompadourofdataviz</dc:creator>
				<category><![CDATA[design]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[small multiples]]></category>
		<category><![CDATA[sparklines]]></category>
		<category><![CDATA[data visualization]]></category>
		<category><![CDATA[layering]]></category>
		<category><![CDATA[report design]]></category>

		<guid isPermaLink="false">http://pushindatalikeweight.com/?p=114</guid>
		<description><![CDATA[I an slowly learning that it is far more advantageous to seek to create tools rather than reports. With a reporting state of mind, one seeks to create a static summary or visualization that most effectively addresses the question at hand. The value of this approach is that it emphasizes understanding a singular problem well, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pushindatalikeweight.com&amp;blog=10630742&amp;post=114&amp;subd=pushindatalikeweight&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I an slowly learning that it is far more advantageous to seek to create tools rather than reports. With a reporting state of mind, one seeks to create a static summary or visualization that most effectively addresses the question at hand. The value of this approach is that it emphasizes understanding a singular problem well, considering multiple approaches, and selecting the best one.</p>
<p>In contrast a tool-oriented state of mind would take a step back beyond the singular problem and seek to create a basis for addressing a broader set of questions of or area of analysis. More often than not, a tool-oriented approach yields better medium of long term results. Moreover, a well constructed tool can serve the role of a report; whereas the opposite is not possible.</p>
<p>In November Chandoo presenting a <a href="http://chandoo.org/wp/2009/11/11/visualizing-salesdata-challenge/">visualization challenge </a>with the following objective: &#8220;You have to make <em><strong>one</strong></em> chart (or dashboards) using this data that would help a senior manager understand how the sales people have done in the 24 months.&#8221; Approaching this from a very report-oriented approach I presented the following:</p>
<p><a title="sales_trellis by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4559950106/"><img src="http://farm5.static.flickr.com/4045/4559950106_332da1e3f4.jpg" alt="sales_trellis" width="500" height="358" /></a></p>
<p>(<a href="http://www.flickr.com/photos/44920637@N02/4559950106/sizes/o/">Full size pic</a>. Also, complete workbook at: http://cid-4e546fec4f1c6d0d.skydrive.live.com/self.aspx/.Public/dashboard%20submission.xlsx)</p>
<p>Given the question, I think it presents an extremely pertinent view of the data. Namely, it is a trellis plot visualizing how each salesman perform acorss different variables (e.g. region, product, and customer type). If the goal is simply to address the original question of understanding salesman performance, the report hits the nail on the head. However, in reality, when you present this to your manager immediately he or she will ask a half dozen more questions: how do the regions compare? which product made the greatest percentage increase? how do product sales differ by region? The salesperson report does not address these question; after all we were originally interested in sales performance. So at this point, we are largely starting from scratch in addressing these questions.</p>
<p>Posed with the same request now, I would look to create something more tool-like such as the following:</p>
<p><a title="sales_tool by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4559320571/"><img src="http://farm4.static.flickr.com/3160/4559320571_7b37f32f05.jpg" alt="sales_tool" width="500" height="209" /></a></p>
<p>(<a href="http://www.flickr.com/photos/44920637@N02/4559320571/sizes/o/">Full size pic</a>)</p>
<p>Here, by leveraging Excel&#8217;s powerful filtering and sorting capabilities in conjunction with <a href="http://pushindatalikeweight.com/2009/12/05/excel-2010-sparklines-v-small-multiples/">small-multiples</a> or custom-made sparklines we are in a position to answer any of the questions thrown at us in short order, perhaps even within seconds. Moreover, if a report is needed to a address a particular question it can be created on the fly as well. In this case, it is requires nothing more than creating a pdf of the relevant filtered and sorted rows.</p>
<p>In subsequent posts, I intend to elaborate on the distinction between report and tool and go into the details of constructing this type of tool, which takes remarkably little time to construct given its capabilities as well as present other examples that illustrate the power of this sweet filter / sorting / in-cell diagrams combo.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pushindatalikeweight.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pushindatalikeweight.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pushindatalikeweight.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pushindatalikeweight.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pushindatalikeweight.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pushindatalikeweight.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pushindatalikeweight.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pushindatalikeweight.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pushindatalikeweight.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pushindatalikeweight.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pushindatalikeweight.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pushindatalikeweight.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pushindatalikeweight.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pushindatalikeweight.wordpress.com/114/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pushindatalikeweight.com&amp;blog=10630742&amp;post=114&amp;subd=pushindatalikeweight&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pushindatalikeweight.com/2010/04/28/tool-v-report/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/63eed16db624261122f55f10c52d7cdb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pompadourofdataviz</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4045/4559950106_332da1e3f4.jpg" medium="image">
			<media:title type="html">sales_trellis</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3160/4559320571_7b37f32f05.jpg" medium="image">
			<media:title type="html">sales_tool</media:title>
		</media:content>
	</item>
		<item>
		<title>Square pie</title>
		<link>http://pushindatalikeweight.com/2010/04/26/square-pie/</link>
		<comments>http://pushindatalikeweight.com/2010/04/26/square-pie/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 04:03:53 +0000</pubDate>
		<dc:creator>pompadourofdataviz</dc:creator>
				<category><![CDATA[chart]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[data visualization]]></category>
		<category><![CDATA[layering]]></category>
		<category><![CDATA[pie chart]]></category>
		<category><![CDATA[report design]]></category>
		<category><![CDATA[small multiples]]></category>
		<category><![CDATA[square pie chart]]></category>

		<guid isPermaLink="false">http://pushindatalikeweight.com/?p=100</guid>
		<description><![CDATA[Generally, pie charts are a poor choice for data visualization. They have very poor data densities, do not facilitate accurate interpretation of their values (angles are difficult to compare by eye with precision), and in nearly all cases can at the very least be replaced with bar charts or dot plots, which would more effectively [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pushindatalikeweight.com&amp;blog=10630742&amp;post=100&amp;subd=pushindatalikeweight&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Generally, pie charts are a poor choice for data visualization. They have very poor data densities, do not facilitate accurate interpretation of their values (angles are difficult to compare by eye with precision), and in nearly all cases can at the very least be replaced with bar charts or dot plots, which would more effectively display the data and facilitate pattern recognition. As a rule, I do not use pie charts. However, I think the case can be made to use square pie charts in selected cases. Namely, in cases where emphasizing the individual units of data have value. The following are three examples of representing student retention over time. Arguably, the line chart is the best representation (greatest data-to-ink ratio, and most clearly represents the longitudinal nature of the data), and the bar is better than the square pie charts (better facilitates comparison of values across semesters).</p>
<p>However, I think the case can be made that the square pie charts, by representing the status of 100 individual units, more forcefully convey an image of individual students dropping out. And in contrast to a round pie chart, the exact values can be determined without too much trouble. I am definitely not making the case that square pies are generally great visualization tools, but in rare cases and contexts they may have their place. For folks that are not very statistically literate perhaps, perhaps they may even be a more intuitive and clearer way of conveying the data. (I am not stating that this is the case, but merely raising the possibility. I have not read encountered any studies of which chart types are most easily understood with audiences of different level of statistical of graph literacy, although I would be very interested in such studies . Please drop me a line if you know of any.)</p>
<p>In an upcoming post, I intend to explore the concept of deliberely representing individual data points over aggregate statistics to underscore messages.</p>
<p><img src="http://farm4.static.flickr.com/3595/4552913763_c65c49f775_o.png" alt="square_pie_retention" width="512" height="161" /></p>
<p><a title="bar_and line_retention by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4553552914/"><img src="http://farm4.static.flickr.com/3523/4553552914_eb4139c645_o.png" alt="bar_and line_retention" width="496" height="484" /></a></p>
<p>If you have any interest in creating square pies, especially many of them, e.g. for report production, the following macro may be of value. It pull parameters from a worksheet such as the one presented. The code is not very robust, i.e. I think it only works for pies of limited dimensions and has no error handling, but it worked for my purposes.</p>
<p><a title="square_pie_data_entry by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4553629524/"><img src="http://farm4.static.flickr.com/3363/4553629524_1dbec9ccb8_o.png" alt="square_pie_data_entry" width="851" height="132" /></a></p>
<p><code></p>
<div id="_mcePaste">
<div id="_mcePaste">Sub obtain_parameters()</div>
<div id="_mcePaste">For rp = 2 To 4</div>
<div id="_mcePaste">With Worksheets("parameter")</div>
<div id="_mcePaste">range_string = .Cells(rp, 1).Value</div>
<div id="_mcePaste">Set cell_pie_start = Worksheets("chart").Range(range_string)</div>
<div id="_mcePaste">length = .Cells(rp, 2)</div>
<div id="_mcePaste">With .Cells(rp, 3)</div>
<div id="_mcePaste">pct_1 = .Value</div>
<div id="_mcePaste">tint_and_shade_1 = .Interior.TintAndShade</div>
<div id="_mcePaste">theme_color_1 = .Interior.ThemeColor</div>
<div id="_mcePaste">End With</div>
<div id="_mcePaste">With .Cells(rp, 4)</div>
<div id="_mcePaste">pct_2 = .Value</div>
<div id="_mcePaste">tint_and_shade_2 = .Interior.TintAndShade</div>
<div id="_mcePaste">theme_color_2 = .Interior.ThemeColor</div>
<div id="_mcePaste">End With</div>
<div id="_mcePaste">With .Cells(rp, 5)</div>
<div id="_mcePaste">pct_3 = .Value</div>
<div id="_mcePaste">tint_and_shade_3 = .Interior.TintAndShade</div>
<div id="_mcePaste">theme_color_3 = .Interior.ThemeColor</div>
<div id="_mcePaste">End With</div>
<div id="_mcePaste">End With</div>
<div id="_mcePaste">Call create_pie</div>
<div id="_mcePaste">Next rp</div>
<div id="_mcePaste">End Sub</div>
<div id="_mcePaste">Sub create_square_pie()</div>
<div id="_mcePaste">Worksheets("chart").Activate</div>
<div id="_mcePaste">cell_pie_start.Select</div>
<div id="_mcePaste">stop_1 = pct_1</div>
<div id="_mcePaste">stop_2 = pct_1 + pct_2</div>
<div id="_mcePaste">i = 0</div>
<div id="_mcePaste">For c = 1 To length</div>
<div id="_mcePaste">For r = 1 To length</div>
<div id="_mcePaste">i = i + 1</div>
<div id="_mcePaste">If i &lt;= stop_1 Then</div>
<div id="_mcePaste">theme_color = theme_color_1</div>
<div id="_mcePaste">tint_and_shade = tint_and_shade_1</div>
<div id="_mcePaste">ElseIf i &gt; stop_1 And i &lt;= stop_2 Then</div>
<div id="_mcePaste">theme_color = theme_color_2</div>
<div id="_mcePaste">tint_and_shade = tint_and_shade_2</div>
<div id="_mcePaste">Else</div>
<div id="_mcePaste">theme_color = theme_color_3</div>
<div id="_mcePaste">tint_and_shade = tint_and_shade_3</div>
<div id="_mcePaste">End If</div>
<div id="_mcePaste">If (c / 2) &lt;&gt; Int(c / 2) Then</div>
<div id="_mcePaste">r_offset = r - 1</div>
<div id="_mcePaste">Else</div>
<div id="_mcePaste">r_offset = length - r</div>
<div id="_mcePaste">End If</div>
<div id="_mcePaste">With cell_pie_start.Offset(r_offset, (c - 1)).Interior</div>
<div id="_mcePaste">.Pattern = xlSolid</div>
<div id="_mcePaste">.PatternColorIndex = xlAutomatic</div>
<div id="_mcePaste">.ThemeColor = theme_color</div>
<div id="_mcePaste">.TintAndShade = tint_and_shade</div>
<div id="_mcePaste">.PatternTintAndShade = 0</div>
<div id="_mcePaste">End With</div>
<div id="_mcePaste">Next r</div>
<div id="_mcePaste">Next c</div>
<div>End Sub</div>
</div>
<p></code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pushindatalikeweight.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pushindatalikeweight.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pushindatalikeweight.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pushindatalikeweight.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pushindatalikeweight.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pushindatalikeweight.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pushindatalikeweight.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pushindatalikeweight.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pushindatalikeweight.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pushindatalikeweight.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pushindatalikeweight.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pushindatalikeweight.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pushindatalikeweight.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pushindatalikeweight.wordpress.com/100/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pushindatalikeweight.com&amp;blog=10630742&amp;post=100&amp;subd=pushindatalikeweight&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pushindatalikeweight.com/2010/04/26/square-pie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/63eed16db624261122f55f10c52d7cdb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pompadourofdataviz</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3595/4552913763_c65c49f775_o.png" medium="image">
			<media:title type="html">square_pie_retention</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3523/4553552914_eb4139c645_o.png" medium="image">
			<media:title type="html">bar_and line_retention</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3363/4553629524_1dbec9ccb8_o.png" medium="image">
			<media:title type="html">square_pie_data_entry</media:title>
		</media:content>
	</item>
		<item>
		<title>Sankey generalized</title>
		<link>http://pushindatalikeweight.com/2010/04/26/sankey-generalized/</link>
		<comments>http://pushindatalikeweight.com/2010/04/26/sankey-generalized/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 01:56:22 +0000</pubDate>
		<dc:creator>pompadourofdataviz</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[Sankey]]></category>
		<category><![CDATA[VBA]]></category>

		<guid isPermaLink="false">http://pushindatalikeweight.com/?p=85</guid>
		<description><![CDATA[This evening I attempted to generalize my circular Sankey VBA to accommodate different diagram types. It turns out, generalizing the program only required modifying a single loop (earlier version is presented in previous in post). r = 2 Do Until IsEmpty(ws_table.Cells(r, 2)) Call obtain_parameters_from_ws 'setting a minimum line width. anything else is essentially not visible. If line_weight [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pushindatalikeweight.com&amp;blog=10630742&amp;post=85&amp;subd=pushindatalikeweight&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This evening I attempted to generalize my circular Sankey VBA to accommodate different diagram types. It turns out, generalizing the program only required modifying a single loop (earlier version is presented in previous in post).</p>
<p><code></p>
<div id="_mcePaste">r = 2</div>
<div id="_mcePaste">Do Until IsEmpty(ws_table.Cells(r, 2))</div>
<div id="_mcePaste">Call obtain_parameters_from_ws</div>
<div id="_mcePaste">'setting a minimum line width. anything else is essentially not visible.</div>
<div id="_mcePaste">If line_weight &lt;&gt; 0 And line_weight &lt;= 0.6 Then line_weight = 0.6</div>
<div id="_mcePaste">'label = create_label(count, percent)</div>
<div id="_mcePaste">Call format_line</div>
<div id="_mcePaste">r = r + 1</div>
<div id="_mcePaste">Loop</div>
<p></code><br />
What is required from the end-user is that they create the lines they want on the template, give them a name, and add the relevant count to the data tab. I tested this versions by creating a piece of an energy flow diagram presented at <a href="http://www.excelhero.com/blog/2010/03/energy-flow-chart.html">Excel Hero</a>. I didn&#8217;t seek to replicate this with any accuracy, but just used the concept as of something different than the original grades changes example. In my first attempt, I created the curved lines by grouping a few straight lines. This works in the sense that the grouped line can be referenced and the width adjusted as a single object. It doesn&#8217;t work in the sense that the lines are not actually seamlessly connected. I actually like how this looks.</p>
<p><a title="sankey_energy_group_lines by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4553259624/"><img src="http://farm4.static.flickr.com/3288/4553259624_3f4a0f2588.jpg" alt="sankey_energy_group_lines" width="500" height="239" /></a></p>
<p>So I gave it another try using a freeform line and that worked fine.</p>
<p><a title="sankey_energy_freeform by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4552621515/"><img src="http://farm5.static.flickr.com/4025/4552621515_9b9cea1652.jpg" alt="sankey_energy_freeform" width="500" height="236" /></a></p>
<p>But that did not entirely represent a true Sankey as the lines are essentially separate and are not breaking off a single line.  To address this, I broke up the main line into a few segments and decreased the width of each segment as other lines forked off it. These calculations are simple to add to the data worksheet. Still this is a bit choppy. The lines connect in odd places. In this case, a few minutes of manual movement of the lines cleaned things up nicely. It would be nice if the lines connected with each other correctly, but I don&#8217;t see myself creating a whole lot of these diagrams on the fly. Any time these are created there will need to be some manual decisions regarding where to place the nodes and how they should be connected. An algorithm could be developed (although maybe not by me), but I think for many applications there will be a need for manual grouping depending upon the desired message and to improve clarity. At this point I have automated basically everything I would want to automate in regards to Sankey creation, which may not be saying much, given that I have rather limited use of Sankey diagrams.</p>
<p><strong>Template</strong><br />
<a title="sankey_energy_template by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4552621579/"><img src="http://farm4.static.flickr.com/3018/4552621579_8efdbce08e_o.png" alt="sankey_energy_template" width="874" height="198" /></a></p>
<p><strong>Data</strong></p>
<p><strong> </strong>Green requires data entry, the rest is calculated.<br />
<a title="sankey_energy_data by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4553259582/"><img src="http://farm4.static.flickr.com/3313/4553259582_71e699bb71_o.png" alt="sankey_energy_data" width="1047" height="218" /></a></p>
<p><strong>Diagram pre-processing</strong></p>
<p><a title="sankey_energy_pre_process by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4552621569/"><img src="http://farm4.static.flickr.com/3239/4552621569_1af9fbfee2_o.png" alt="sankey_energy_pre_process" width="1159" height="300" /></a></p>
<p><strong>Diagram couple minutes of manual modification</strong></p>
<p><a title="sankey_energy_post_process by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4553259640/"><img src="http://farm4.static.flickr.com/3144/4553259640_caaf6072c8_o.png" alt="sankey_energy_post_process" width="1159" height="266" /></a></p>
<p>Coincidently, I ran across a <a href="http://www.bewitched.com/song.html">diagram </a>that looks remarkably similar to my circular Sankey two days after posting it. The purpose of Martin Wattenber&#8217;s diagram is entirely different, not to mention far more sophisticated and apparently was created 9 years. If you are looking for lame Excel visualizations decades after they could be considered novel, this is the place.</p>
<p>Note: As usual, if you want the workbook, request it.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pushindatalikeweight.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pushindatalikeweight.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pushindatalikeweight.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pushindatalikeweight.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pushindatalikeweight.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pushindatalikeweight.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pushindatalikeweight.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pushindatalikeweight.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pushindatalikeweight.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pushindatalikeweight.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pushindatalikeweight.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pushindatalikeweight.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pushindatalikeweight.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pushindatalikeweight.wordpress.com/85/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pushindatalikeweight.com&amp;blog=10630742&amp;post=85&amp;subd=pushindatalikeweight&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pushindatalikeweight.com/2010/04/26/sankey-generalized/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/63eed16db624261122f55f10c52d7cdb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pompadourofdataviz</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3288/4553259624_3f4a0f2588.jpg" medium="image">
			<media:title type="html">sankey_energy_group_lines</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4025/4552621515_9b9cea1652.jpg" medium="image">
			<media:title type="html">sankey_energy_freeform</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3018/4552621579_8efdbce08e_o.png" medium="image">
			<media:title type="html">sankey_energy_template</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3313/4553259582_71e699bb71_o.png" medium="image">
			<media:title type="html">sankey_energy_data</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3239/4552621569_1af9fbfee2_o.png" medium="image">
			<media:title type="html">sankey_energy_pre_process</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3144/4553259640_caaf6072c8_o.png" medium="image">
			<media:title type="html">sankey_energy_post_process</media:title>
		</media:content>
	</item>
		<item>
		<title>Visualizing crosstabs (or pivot tables) with sankey diagrams</title>
		<link>http://pushindatalikeweight.com/2010/04/23/visualizing-crosstabs-or-pivot-tables-with-sankey-diagrams/</link>
		<comments>http://pushindatalikeweight.com/2010/04/23/visualizing-crosstabs-or-pivot-tables-with-sankey-diagrams/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 04:02:37 +0000</pubDate>
		<dc:creator>pompadourofdataviz</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[crosstab]]></category>
		<category><![CDATA[crosstabulation]]></category>
		<category><![CDATA[data visualization]]></category>
		<category><![CDATA[flow diagram]]></category>
		<category><![CDATA[pivot]]></category>
		<category><![CDATA[Sankey]]></category>
		<category><![CDATA[VBA]]></category>

		<guid isPermaLink="false">http://pushindatalikeweight.com/?p=55</guid>
		<description><![CDATA[I recently ran across an incredible blog, Excel Hero, that presented a Sankey diagram of energy flow created in Excel. I have been inspired by this to finally post an example of a Sankey diagram I have been using to visualize crosstabulations. The presented example is changes in overall and category grades for NYC High School [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pushindatalikeweight.com&amp;blog=10630742&amp;post=55&amp;subd=pushindatalikeweight&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I recently ran across an incredible blog, <a href="http://www.excelhero.com/blog/">Excel Hero</a>, that presented a <a href="http://www.excelhero.com/blog/2010/03/energy-flow-chart.html">Sankey diagram of energy flow created in Excel</a>. I have been inspired by this to finally post an example of a Sankey diagram I have been using to visualize crosstabulations. The presented example is changes in overall and category grades for NYC High School Progress Report from publicly available data from the<a href="http://schools.nyc.gov/Accountability/tools/report/default.htm"> NYC DOE</a> (to clarify, these are grades evaluating schools, not students).</p>
<p><strong>Caveat: </strong>There is a decent chance that the actual figures I present are erroneously labeled or calculated since I did not bother to review. If the data is of interest, I would work from the <a href="http://schools.nyc.gov/Accountability/tools/report/default.htm">raw data</a>. My aim is to present an approach to data visualization, not to present an actual analysis.</p>
<p><strong>Note:</strong> If anyone is interested in the workbook used to create these diagrams, let me know and I will provide it.</p>
<p><strong>Value of Sankey v crosstab or pivot table</strong></p>
<p><em>Crosstab</em></p>
<p><a title="crosstab_table by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4545034642/"><img style="border:0 initial initial;" src="http://farm5.static.flickr.com/4062/4545034642_ce3a1b0065.jpg" alt="crosstab_table" width="339" height="500" /></a></p>
<p><em>Sankey, overall</em></p>
<p><a title="sankey_overall by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4545034690/"><img style="border:0 initial initial;" src="http://farm5.static.flickr.com/4048/4545034690_11dbbc95ce.jpg" alt="sankey_overall" width="500" height="494" /></a></p>
<p><em>Sankey, environment</em></p>
<p><a title="sankey_environment by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4545034680/"><img style="border:0 initial initial;" src="http://farm5.static.flickr.com/4036/4545034680_e06af1a358.jpg" alt="sankey_environment" width="500" height="498" /></a></p>
<p><em>Sankey, performance</em></p>
<p><a title="sankey_performance by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4545034706/"><img style="border:0 initial initial;" src="http://farm5.static.flickr.com/4004/4545034706_5ce9618bea.jpg" alt="sankey_performance" width="500" height="500" /></a></p>
<p><em>Sankey, progress</em></p>
<p><a title="sankey_progress by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4544402631/"><img style="border:0 initial initial;" src="http://farm5.static.flickr.com/4031/4544402631_1859383acf.jpg" alt="sankey_progress" width="500" height="487" /></a></p>
<p>I think the Sankey offers improved pattern recognition over a crosstabulation, even when formatted (although a more nuanced heatmap may have made the table more revealing). For simple and small tables there may be relatively little to gain from visualizing data; but as is the case with visualization in general, the greater the quantity and complexity of the data, the more advantageous it is to visualize. The Sankey I have created has increases in grade represented on the top (green), static grades in the middle (brown), and decreases on the bottom (blue). The height of the path or arc represents the magnitude of the increase or decrease (i.e. big or small jump), and the width of the path represents the portion of schools it represents. In this case, you can learn a lot with a quick glance. For example. there is relatively less movement among overall grades than category grades, environment had relatively little increases compared to other categories, and performance has more varied movement than performance. When I look at the tables, they all look more or less the same.</p>
<p>Typically visualizations improve pattern recognition at the loss of look-up functionality, i.e. exact figures are not available. In this case, the exact number and percent of schools label each line, so it contains all the detail available in the table. The coloring may be more effective if red colored the decreases, but I was inspired by the riverbank metaphor used in this <a href="http://www.leebyron.com/what/lastfm/">music history visualization</a> (the metaphor does not really apply in my case, but I like how it looks). The line are made semi-transparent and use relatively light colors to improve clarity in cases of overlapping lines. One limitation of this approach is that unless you have a good printer, the diagram looks like junk.</p>
<p>This circular Sankey is generalizeable to any crosstab of categorical data that is ordinal and symmetrical. Sankeys commonly depict  asymmetrical or geographic data, but in my opinion Sankeys offer a good alternative to more run-of-the mill crosstabs as well.</p>
<p>I have seen other Sankey or network visualizations created in Processing, and in most cases my Excel creation looks crude in comparison. Here is an example that came to mind, but upon close review it is not a Sankey since line widths do not convey information. Nonetheless, it is an <a href="Chris Harisson">interesting and beautiful visualization</a>.</p>
<p><strong>Creation</strong><br />
The workbook consists of three worksheets:</p>
<p>*Worksheet with the original actual crosstab table. This provides an easy location to populate new raw data.</p>
<p><em>Worksheet, raw data</em></p>
<p><a title="data_raw by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4544402583/"><img style="border:0 initial initial;" src="http://farm5.static.flickr.com/4032/4544402583_f3dacef263_o.png" alt="data_raw" width="381" height="174" /></a></p>
<p>*An intermediate data worksheet. This references and restructures the crosstab into one value per row, and each value is named; this provides and easier way of referencing the values in VBA. The worksheet also performs calculations, e.g. each values percent of total and width, subtotals.</p>
<p><em>Worksheet, intermediate data</em></p>
<p><a title="data_int by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4544402573/"><img style="border:0 initial initial;" src="http://farm5.static.flickr.com/4057/4544402573_c8b7793b0c_o.png" alt="data_int" width="617" height="496" /></a></p>
<p>*A worksheet containing a template of the diagram, where all of the lines are uniform in width. I created the initial lines and labels manually, and named each line and width with the connection is represents, e.g. a_b.</p>
<p><em>Worksheet, template</em></p>
<p><a title="sankey_template by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4545034732/"><img style="border:0 initial initial;" src="http://farm5.static.flickr.com/4002/4545034732_1911b4346a.jpg" alt="sankey_template" width="500" height="462" /></a></p>
<p>A macro uses the values from the intermediate data worksheet to set the widths of all the lines. It enters data from the intermediate data worksheet into the labels. So the crux of the program is:<span style="font-family:monospace;"><br />
</span></p>
<p><code></p>
<div id="_mcePaste">Sub master()</div>
<div id="_mcePaste">line_transparency = 0.2</div>
<div id="_mcePaste">Sheets("graph_template").Copy Before:=Sheets(1)</div>
<div id="_mcePaste">Sheets(1).Name = "graph"</div>
<div id="_mcePaste">Set ws_graph = Worksheets("graph")</div>
<div id="_mcePaste">Set ws_table = Worksheets("table")</div>
<div id="_mcePaste">For r = 2 To 26</div>
<div id="_mcePaste">Call obtain_parameters_from_ws</div>
<div id="_mcePaste">If line_weight &lt;&gt; 0 And line_weight &lt;= 0.4 Then line_weight = 0.6</div>
<div id="_mcePaste">label = create_label(count, percent)</div>
<div id="_mcePaste">Call format_line</div>
<div id="_mcePaste">Next r</div>
<div id="_mcePaste">Call label_summary_cells</div>
<div id="_mcePaste">End Sub</div>
<p></code></p>
<p>One annoyance when creating this was figuring out which shapes are actually accessible to VBA. I think something like smart shape objects cannot be referenced, but lines can. So for example, I originally attempted to have the brown lines be actual box shape objects, but this did not work, so I had to make them lines. And the labels on the brown lines did not seem to be positionable where I wanted them, so I had to use text boxes. Dealing with small stuff like this accounted for about half the time it took to put this together.</p>
<p>When all is said and done, the end-user just needs to populate the crosstab tables and provide a single overall width multiplier for all lines (this takes a few attempts before a width that is aesthetically pleasing and results a clear digram is arrived at) and hit run to generate a new Sankey.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pushindatalikeweight.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pushindatalikeweight.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pushindatalikeweight.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pushindatalikeweight.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pushindatalikeweight.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pushindatalikeweight.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pushindatalikeweight.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pushindatalikeweight.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pushindatalikeweight.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pushindatalikeweight.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pushindatalikeweight.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pushindatalikeweight.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pushindatalikeweight.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pushindatalikeweight.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pushindatalikeweight.com&amp;blog=10630742&amp;post=55&amp;subd=pushindatalikeweight&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pushindatalikeweight.com/2010/04/23/visualizing-crosstabs-or-pivot-tables-with-sankey-diagrams/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/63eed16db624261122f55f10c52d7cdb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pompadourofdataviz</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4062/4545034642_ce3a1b0065.jpg" medium="image">
			<media:title type="html">crosstab_table</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4048/4545034690_11dbbc95ce.jpg" medium="image">
			<media:title type="html">sankey_overall</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4036/4545034680_e06af1a358.jpg" medium="image">
			<media:title type="html">sankey_environment</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4004/4545034706_5ce9618bea.jpg" medium="image">
			<media:title type="html">sankey_performance</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4031/4544402631_1859383acf.jpg" medium="image">
			<media:title type="html">sankey_progress</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4032/4544402583_f3dacef263_o.png" medium="image">
			<media:title type="html">data_raw</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4057/4544402573_c8b7793b0c_o.png" medium="image">
			<media:title type="html">data_int</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4002/4545034732_1911b4346a.jpg" medium="image">
			<media:title type="html">sankey_template</media:title>
		</media:content>
	</item>
		<item>
		<title>Excel 2010: sparklines v small multiples</title>
		<link>http://pushindatalikeweight.com/2009/12/05/excel-2010-sparklines-v-small-multiples/</link>
		<comments>http://pushindatalikeweight.com/2009/12/05/excel-2010-sparklines-v-small-multiples/#comments</comments>
		<pubDate>Sat, 05 Dec 2009 06:32:08 +0000</pubDate>
		<dc:creator>pompadourofdataviz</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[small multiples]]></category>
		<category><![CDATA[sparklines]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[data visualization]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[layering]]></category>
		<category><![CDATA[report design]]></category>

		<guid isPermaLink="false">http://pushindatalikeweight.com/?p=46</guid>
		<description><![CDATA[Sparklines are defined within Tufte’s Beautiful Evidence (p 47) as: “small high-resolution graphics usually embedded in a full context of words, numbers, images. Sparklines as datawords: data-intense, design-simple, word-sized graphics.” The most common application of sparklines within business intelligence departs from this idea a bit, as the images are rarely embedded within text. Their use [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pushindatalikeweight.com&amp;blog=10630742&amp;post=46&amp;subd=pushindatalikeweight&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sparklines are defined within Tufte’s <span style="text-decoration:underline;"><a href="http://www.amazon.com/Beautiful-Evidence-Edward-R-Tufte/dp/0961392177/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1259993744&amp;sr=8-1">Beautiful Evidence</a></span> (p 47) as:</p>
<blockquote><p>“small high-resolution graphics usually embedded in a full context of words, numbers, images. Sparklines as <em>datawords</em>: data-intense, design-simple, word-sized graphics.”</p></blockquote>
<p>The most common application of sparklines within business intelligence departs from this idea a bit, as the images are rarely embedded within text. Their use in the context of dashboards and reports could better be conceptualized as an extreme form of the more general concept of small multiples.</p>
<p>If one adopts this perspective, the introduction of sparklines in Excel 2010 without improved support of small multiples in general is a disappointing and rather narrow improvement. For example, sparklines have the following formatting options:</p>
<ul>
<li>highlight the highest and/ or lowest data point</li>
<li>highlight the first and last points in the chart</li>
<li>color negative points using a different color.</li>
</ul>
<p>As far as I know, these options do not exist for normal charts, though they could clearly be done manually. Conversely, sparklines do not offer anywhere near the level of customization of normal charts.  For this reason, I intend to continue creating sparklines the same way I did in earlier versions of Excel, namely by shrinking down a graph to a few cells in size and deleting the axes. Using this method I would not be able to replicate the win loss sparkline easily, but I do not have much use for that anyway.</p>
<p>The following explains how to create small multiples and the advantages of this approach over the sparklines feature or a single large graph. In this example, I created dotplots for a series of 9 values. The first set of plots is created using a single graph, the second set of plots is created using a graph for each value, i.e. 9 graphs.</p>
<p><a title="single_graph_v_small_multiples by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4159722838/"><img src="http://farm3.static.flickr.com/2618/4159722838_f0172823f5_o.jpg" alt="single_graph_v_small_multiples" width="557" height="219" /></a></p>
<p>The advantage of the small multiples in this case is that they remain synchronized with the text in accompanying cells when the values are sorted or filtered. Filtering and sorting are important features that most business intelligence tools should support. The following illustrates problem with sorting when a single graph is used.</p>
<p><a title="single_graph_v_small_multiples_sorted by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4158964639/"><img src="http://farm3.static.flickr.com/2566/4158964639_8a9eaf346b_o.jpg" alt="single_graph_v_small_multiples_sorted" width="559" height="221" /></a></p>
<p>The small multiples are created by plotting a dummy value, unhidden in this version. More specifically, the rows are not ‘hidden’, as this would remove the data points from the graph. Instead, the column widths are set to a fraction of an inch.</p>
<p><a title="single_graph_v_small_multiples_unhidden by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4158978729/"><img src="http://farm3.static.flickr.com/2588/4158978729_b93472c82b_o.jpg" alt="single_graph_v_small_multiples_unhidden" width="742" height="231" /></a></p>
<p>To create the individual small multiples, the vertical axis is set so the data point is centered.</p>
<p><a title="intial_step_small_multiple by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4159722826/"><img src="http://farm3.static.flickr.com/2669/4159722826_2eeb4a7637_o.jpg" alt="intial_step_small_multiple" width="249" height="191" /></a></p>
<p>The axes are deleted. Then the plot area is stretched to match that of the chart area and both the plot area and the chart area are set to have no fill. The small multiple is then copied 8 times, each one set to refer to a different data point. The small multiples are snapped to the grid to assure proper alignment and size.</p>
<p>Sparklines do not offer dot plots, so they are of no use for this type of application. Moreover, two of the graph types supported by sparklines can be created with far greater customization using this small multiples method. For example, these line graphs highlight a specific value which is not the highest, lowest, first, or last data point. The highlighting is done with a cross as a symbol. And tickmarks indicate precise data points. None of this can be done with sparklines.</p>
<p><a title="small_multipe_tickmark_at_midpoint by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4159722856/"><img src="http://farm3.static.flickr.com/2614/4159722856_7b4a3a21ac_o.jpg" alt="small_multipe_tickmark_at_midpoint" width="168" height="40" /></a></p>
<p><a title="small_multiple_tickmark_at_every_two_years by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4158964651/"><img src="http://farm3.static.flickr.com/2786/4158964651_4a39aefa58_o.jpg" alt="small_multiple_tickmark_at_every_two_years" width="160" height="54" /></a></p>
<p>Clearly, creating custom sparklines from small multiples takes a bit longer, but the difference is a matter of minutes. When creating dashboards or reports that have a wide audience or will be re-used, I prefer to spend the few extra minutes to create the visualization that best represents the data. Another advantage to creating sparklines the old-fashioned is better backward compatibility; I do not expect widespread adoption of Excel 2010 among my users for a few more years.</p>
<p>In sum, in many cases I do not anticipate adopting the sparklines feature and will instead rely on a small multiples approach to achieving a similar, yet far more flexible visual display. However, for something like exploratory data analysis or prototyping, sparklines may be useful.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pushindatalikeweight.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pushindatalikeweight.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pushindatalikeweight.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pushindatalikeweight.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pushindatalikeweight.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pushindatalikeweight.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pushindatalikeweight.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pushindatalikeweight.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pushindatalikeweight.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pushindatalikeweight.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pushindatalikeweight.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pushindatalikeweight.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pushindatalikeweight.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pushindatalikeweight.wordpress.com/46/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pushindatalikeweight.com&amp;blog=10630742&amp;post=46&amp;subd=pushindatalikeweight&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pushindatalikeweight.com/2009/12/05/excel-2010-sparklines-v-small-multiples/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/63eed16db624261122f55f10c52d7cdb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pompadourofdataviz</media:title>
		</media:content>

		<media:content url="http://farm3.static.flickr.com/2618/4159722838_f0172823f5_o.jpg" medium="image">
			<media:title type="html">single_graph_v_small_multiples</media:title>
		</media:content>

		<media:content url="http://farm3.static.flickr.com/2566/4158964639_8a9eaf346b_o.jpg" medium="image">
			<media:title type="html">single_graph_v_small_multiples_sorted</media:title>
		</media:content>

		<media:content url="http://farm3.static.flickr.com/2588/4158978729_b93472c82b_o.jpg" medium="image">
			<media:title type="html">single_graph_v_small_multiples_unhidden</media:title>
		</media:content>

		<media:content url="http://farm3.static.flickr.com/2669/4159722826_2eeb4a7637_o.jpg" medium="image">
			<media:title type="html">intial_step_small_multiple</media:title>
		</media:content>

		<media:content url="http://farm3.static.flickr.com/2614/4159722856_7b4a3a21ac_o.jpg" medium="image">
			<media:title type="html">small_multipe_tickmark_at_midpoint</media:title>
		</media:content>

		<media:content url="http://farm3.static.flickr.com/2786/4158964651_4a39aefa58_o.jpg" medium="image">
			<media:title type="html">small_multiple_tickmark_at_every_two_years</media:title>
		</media:content>
	</item>
		<item>
		<title>Layering in Excel</title>
		<link>http://pushindatalikeweight.com/2009/12/05/layering-in-excel/</link>
		<comments>http://pushindatalikeweight.com/2009/12/05/layering-in-excel/#comments</comments>
		<pubDate>Sat, 05 Dec 2009 02:17:31 +0000</pubDate>
		<dc:creator>pompadourofdataviz</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[Layering]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[benchmark]]></category>
		<category><![CDATA[chart]]></category>
		<category><![CDATA[compound chart]]></category>
		<category><![CDATA[layering]]></category>
		<category><![CDATA[reference line]]></category>

		<guid isPermaLink="false">http://pushindatalikeweight.com/?p=23</guid>
		<description><![CDATA[Chandoo provides an interesting use of layering Excel objects to add background effects to charts. The example provided suggest many practical uses, but the underlying technique of layering has far broader application and is more powerful than Chandoo’s post indicates. Layering is the placing of multiple charts and/or shapes over the underlying spreadsheet grid; the objects [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pushindatalikeweight.com&amp;blog=10630742&amp;post=23&amp;subd=pushindatalikeweight&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://chandoo.org/wp/2009/12/03/use-shapes-in-dashboards/">Chandoo </a>provides an interesting use of layering Excel objects to add background effects to charts. The example provided suggest many practical uses, but the underlying technique of <em><strong>layering</strong> </em>has far broader application and is more powerful than Chandoo’s post indicates.</p>
<p>Layering is the placing of multiple charts and/or shapes over the underlying spreadsheet grid; the objects are made transparent, so multiple layers can be viewed at once. For charts the transaprency is achieved by setting &#8216;no fill&#8217; for both the plot area and chart area formats. There are several reasons for layering:</p>
<ul>
<li>Integrating multiple charts</li>
<li>Integrating charts with non-chart report elements</li>
<li>Formatting and customizing charts</li>
<li>Creating compound charts</li>
</ul>
<p>I will cover each of these possible uses of layering. If you have any other uses or examples of layering please indicate in the comments. I assume I am only scratching the surface of this technique.</p>
<h2><strong>Integrating multiple charts</strong></h2>
<p>In a previous post <em><a href="http://pushindatalikeweight.com/2009/11/23/integrating-report-elements-in-excel/">Integrating report elements in Excel</a></em> I demonstrate use of a common spreadsheet layer providing unifying zebra stripes and axes to integrate completely different chart types (e.g. stem-and-leaf-plot and scatter plots) or small multiples of the same chart type (e.g. dot plots). <a href="http://peltiertech.com/Excel/ChartsHowTo/PanelChart1.html">Alternatives </a>to integrating multiple charts exist, but layering seems simpler, especially if different chart types are involved.</p>
<h2><strong>Integrating charts with non-chart report elements</strong></h2>
<p><a href="http://chandoo.org/wp/2009/12/03/use-shapes-in-dashboards/">Chandoo’s post</a> provides a good example of this type of application.</p>
<h2><strong>Formatting and customizing charts</strong></h2>
<p>One example is creating a colored background. Zebra stripes is one example already noted. Another would be to highlight different time periods or different quadrants or sections of a graph. Jon Peltier provides some examples <a href="http://peltiertech.com/Excel/Charts/ColoredVerticalBand.html">here </a>and <a href="http://peltiertech.com/Excel/Charts/ColoredQuadrantBackground.html">here</a> of how to set background color for charts by using a stacked bar within the chart. However, layering seems to be a far simpler and flexible solution. Consider the following scatterplot. To color the four quadrants, the plot area and chart area backgrounds are set to ‘no fill’ and the plot area is snapped to a 10 x 10 grid of cells, which are colored accordingly. This is effectively the same effect that was achieved with the stacked bar chart method.</p>
<p><a title="layering_chart_background_color_1 by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4158516115/"><img src="http://farm3.static.flickr.com/2479/4158516115_69e594e28f.jpg" alt="layering_chart_background_color_1" width="500" height="383" /></a></p>
<p>However, we can add many different types of chart customization by similarly adding text of formatting the underlying cells. Here sub-quadrants are created with different colors, borders, and labeling.</p>
<p><a title="layering_chart_background_color_2 by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4159277844/"><img src="http://farm3.static.flickr.com/2741/4159277844_fc80e24890.jpg" alt="layering_chart_background_color_2" width="500" height="408" /></a></p>
<p>Another application is highlighting of groups such as quarters and months. Again, only the cells underneath the transparent graph are colored. The following chart was created using layering, which is relatively simple compared to a <a href="http://chandoo.org/wp/2009/08/27/dynamic-event-grouping-in-charts/">graph within a graph approach explained by Chandoo</a> .</p>
<p><a title="layering_chart_highlight_month by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4159277850/"><img src="http://farm3.static.flickr.com/2580/4159277850_d2c74e00ee.jpg" alt="layering_chart_highlight_month" width="496" height="374" /></a></p>
<p><a title="layering_chart_highlight_quarter by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4158516143/"><img src="http://farm3.static.flickr.com/2623/4158516143_caf26b9023.jpg" alt="layering_chart_highlight_quarter" width="496" height="375" /></a></p>
<p>Chandoo&#8217;s example is dynamic. Likewise, the cell coloring can be made dynamic with some simple conditional logic within a macro. The benefit here is flexibility. If you wanted a more complicated pattern, it would only be a matter of specifying the colors of ranges of cells. The full code used for this example is as follows (The code is a bit redundant and could be made more concise, but it works for now):</p>
<p><code></p>
<div id="_mcePaste">Sub DropDown4_Change()</div>
<div id="_mcePaste">Call clear_plot_area</div>
<div>With Worksheets("highlight_quarter")</div>
<div id="_mcePaste">Select Case .range("O16").Value</div>
<div id="_mcePaste">Case 1</div>
<div id="_mcePaste">Call format("E19:E30")</div>
<div id="_mcePaste">Call format("G19:G30")</div>
<div id="_mcePaste">Call format("I19:I30")</div>
<div id="_mcePaste">Call format("K19:K30")</div>
<div id="_mcePaste">Call format("M19:M30")</div>
<div id="_mcePaste">Call format("O19:O30")</div>
<div id="_mcePaste">Case 2</div>
<div id="_mcePaste">Call format("E19:G30")</div>
<div id="_mcePaste">Call format("K19:M30")</div>
<div id="_mcePaste">End Select</div>
<div id="_mcePaste">End With</div>
<div id="_mcePaste">End Sub</div>
<div>Sub format(range As String)</div>
<div id="_mcePaste">With Worksheets("highlight_quarter").range(range).Interior</div>
<div id="_mcePaste">.ThemeColor = xlThemeColorDark1</div>
<div id="_mcePaste">.TintAndShade = -0.149998474074526</div>
<div id="_mcePaste">End With</div>
<div id="_mcePaste">End Sub</div>
<div>Sub clear_plot_area()</div>
<div id="_mcePaste">With Worksheets("highlight_quarter").range("E19:P30").Interior</div>
<div id="_mcePaste">.Pattern = xlNone</div>
<div id="_mcePaste">.TintAndShade = 0</div>
<div id="_mcePaste">.PatternTintAndShade = 0</div>
<div id="_mcePaste">End With</div>
<div id="_mcePaste">End Sub</div>
<p></code></p>
<h2><strong>Creating compound charts</strong></h2>
<p>One approach to creating combination charts is to select individual data series and change the chart type just for that data series. This method is explained by <a href="http://spreadsheetpage.com/index.php/tip/creating_combination_charts/">John Walkenbach</a>, <a href="http://peltiertech.com/Excel/Charts/BarLineCombo.html">Jon Peltier</a>, and <a href="http://chandoo.org/wp/2009/09/02/pareto-charts/">Chandoo </a>. Layering can also be used as an alternative to this approach. Here is a Pareto chart, which consists of a transparent line graph over a transparent bar graph. The plot sizes are snapped to the same cells so they overlap correctly.</p>
<p><a title="layering_chart_pareto_1 by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4159277894/"><img src="http://farm3.static.flickr.com/2696/4159277894_3acfc31e15.jpg" alt="layering_chart_pareto_1" width="500" height="318" /></a></p>
<p>Compared to the aforementioned method, the time to create the graph is roughly the same. However, I think the layering method offers advantages when dealing with more complex types of combinations. Here we have three layers of graphs: two line graphs and a bar chart. The two line charts use different axes.</p>
<p><a title="layering_chart_pareto_2 by pompadourofdataviz, on Flickr" href="http://www.flickr.com/photos/44920637@N02/4159277920/"><img src="http://farm3.static.flickr.com/2689/4159277920_9001d6319b.jpg" alt="layering_chart_pareto_2" width="500" height="315" /></a></p>
<h2><strong>Conclusion</strong></h2>
<p>In sum, layering is a method that is conceptually simple and intuitive, yet is both flexible and powerful in its application. In some cases, alternative methods exist to achieve the same effect as layering, but in nearly every situation layering offers greater flexibility. Moreover, in the absence of layering one would need to learn many different excel tricks, some of which are hard to remember, to perform the same tasks. In contrast, layering is one simple method amounting to little more than removing the chart and plot areas of graphs and using the underlying excel grid or other objects as background.</p>
<p>In a future post I will show how layering can be used to create create rugs and more informative axes.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pushindatalikeweight.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pushindatalikeweight.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pushindatalikeweight.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pushindatalikeweight.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pushindatalikeweight.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pushindatalikeweight.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pushindatalikeweight.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pushindatalikeweight.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pushindatalikeweight.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pushindatalikeweight.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pushindatalikeweight.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pushindatalikeweight.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pushindatalikeweight.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pushindatalikeweight.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pushindatalikeweight.com&amp;blog=10630742&amp;post=23&amp;subd=pushindatalikeweight&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pushindatalikeweight.com/2009/12/05/layering-in-excel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/63eed16db624261122f55f10c52d7cdb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pompadourofdataviz</media:title>
		</media:content>

		<media:content url="http://farm3.static.flickr.com/2479/4158516115_69e594e28f.jpg" medium="image">
			<media:title type="html">layering_chart_background_color_1</media:title>
		</media:content>

		<media:content url="http://farm3.static.flickr.com/2741/4159277844_fc80e24890.jpg" medium="image">
			<media:title type="html">layering_chart_background_color_2</media:title>
		</media:content>

		<media:content url="http://farm3.static.flickr.com/2580/4159277850_d2c74e00ee.jpg" medium="image">
			<media:title type="html">layering_chart_highlight_month</media:title>
		</media:content>

		<media:content url="http://farm3.static.flickr.com/2623/4158516143_caf26b9023.jpg" medium="image">
			<media:title type="html">layering_chart_highlight_quarter</media:title>
		</media:content>

		<media:content url="http://farm3.static.flickr.com/2696/4159277894_3acfc31e15.jpg" medium="image">
			<media:title type="html">layering_chart_pareto_1</media:title>
		</media:content>

		<media:content url="http://farm3.static.flickr.com/2689/4159277920_9001d6319b.jpg" medium="image">
			<media:title type="html">layering_chart_pareto_2</media:title>
		</media:content>
	</item>
	</channel>
</rss>
