<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" 
      xmlns:thr="http://purl.org/syndication/thread/1.0">
  <link rel="alternate" type="text/html" href="http://www.insideria.com/2008/04/degrafa-data-part-2-the-sparkl.html" />
  <link rel="self" type="application/atom+xml" href="http://www.insideria.com/atom.xml" />
  <id>tag:www.insideria.com,2009://34/tag:www.insideria.com,2008://34.23309-</id>
  <updated>2009-11-16T14:56:50Z</updated>
  <title>Comments for Degrafa + Data Part 2: The Sparkline (http://www.insideria.com/2008/04/degrafa-data-part-2-the-sparkl.html)</title>
  <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.21-en</generator>
  <entry>
    <id>tag:www.insideria.com,2008://34.23309</id>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2008/04/degrafa-data-part-2-the-sparkl.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://blogs.oreilly.com/cgi-bin/mt/mt-atom.cgi/weblog/blog_id=34/entry_id=23309" title="Degrafa + Data Part 2: The Sparkline" />
    <published>2008-04-04T22:49:40Z</published>
    <updated>2008-04-05T13:04:34Z</updated>
    <title>Degrafa + Data Part 2: The Sparkline</title>
    <summary>I&apos;ve expanded upon the ideas of my last post: &quot;Degrafa + Datagrids = Visual Display of Data&quot;, and I&apos;m continuing to explore data visualizations using Degrafa.  This time, I&apos;ve decided to tackle the sparkline.</summary>
    <author>
      <name>Andrew Trice</name>
      
    </author>
    
    <category term="Blogs" />
    
    <content type="html" xml:lang="en" xml:base="http://www.insideria.com/">
      <![CDATA[<div class="ap_r_front"  style="margin: 0px 14px; 14px; 14px;"><a href="http://www.insideria.com/upload/2008/04/degrafa_data_part_2_the_sparkl/sparkline.png" class="highslide" onclick="return hs.expand(this)"><img src="http://www.insideria.com/upload/2008/04/degrafa_data_part_2_the_sparkl/sparkline.png" alt="sparkline.png" title="Click to enlarge" width="148"/></a></div>I've expanded upon the ideas of my <a href="http://www.insideria.com/2008/03/degrafa-datagrids-visual-displ.html" target="_blank">last post: "Degrafa + Datagrids = Visual Display of Data"</a>, and I'm continuing to explore data visualizations using <a href="http://www.degrafa.com" target="_blank">Degrafa</a>.  This time, I've decided to tackle the <a href="http://en.wikipedia.org/wiki/Sparkline" target="_blank">sparkline</a>.

<p><br />
From <a href="http://en.wikipedia.org/wiki/Sparkline" target="_blank">wikipedia</a>:<br />
<blockquote><a href="http://en.wikipedia.org/wiki/Sparkline" target="_blank">Sparkline </a>is a name proposed by <a href="http://en.wikipedia.org/wiki/Edward_Tufte" target="_blank">Edward Tufte</a> for "small, high resolution graphics embedded in a context of words, numbers, images".</p>

<p><br />
Tufte describes sparklines as "data-intense, design-simple, word-sized graphics". Whereas the typical chart is designed to show as much data as possible, and is set off from the flow of text, sparklines are intended to be succinct, memorable, and located where they are discussed. Their use inline usually means that they are about the same height as the surrounding text.<br />
</blockquote></p>

<p>Everyone's heard the phrase "a picture is worth a thousand words", and this next example is more proof of that.   We all know the usefulness of charts at expressing numeric data in an easy to grasp format.   I'm not embedding the sparkline in text, as Tufte describes, however I'm using it in a Flex datagrid component.   </p>

<p>First, here are a few simple examples of my sparkline component:</p>

<p><script src="http://www.tricedesigns.com/portfolio/degrafasparkline/swfobject.js" type="text/javascript"></script>	</p><div id="sparkline"></div>	<script>	var so = new SWFObject("http://www.tricedesigns.com/portfolio/degrafasparkline/DegrafaSparkline.swf", "DegrafaSparkline", "425", "260", "8", "#FFFFFF");	so.write("sparkline");</script></p>

<p>It can be used standalone as a very simplistic chart, or a stylized version.  Sparklines are traditionally minimalistic in appearance, so that they clearly express the data.  This component gives flexibility for the developer to customize it how they please.  It is built using <a href="http://www.degrafa.com" target="_blank">Degrafa</a>, so it is very easy customize the appearance.  The first sparkline is a very basic one: no background and a 1px black stroke.  The second uses a gradient fill and a thicker stroke, and the third uses a bitmap fill, and a gradient stroke.</p>

<p>Now, here is a more-interesting application of the sparkline... Using the sparkline as an item renderer in a datagrid.   This adds another dimension to the tabular data.  Not only are you able to easily see a server, its current disk usage, but now you can see its cpu usage history.    You could use another sparkline to show disk usage over time.   If you were to express the same amount of information in words, you would be reading and analyzing for a long time, and you still might miss part of it.</p>

<p><script src="http://www.tricedesigns.com/portfolio/degrafasparkline/swfobject.js" type="text/javascript"></script>	</p><div id="datagridsparkline"></div>	<script>	var so = new SWFObject("http://www.tricedesigns.com/portfolio/degrafasparkline/DegrafaSparklineDataGrid.swf", "DegrafaSparklineDatagrid", "425", "300", "8", "#FFFFFF");	so.write("datagridsparkline");</script></p>

<p>Thanks to <a href="http://www.degrafa.com/team/" target="_blank">Juan and Jason from the Degrafa team</a> for giving me a few pointers how to best use Degrafa for this.</p>

<p>You can launch these examples in a new window at:</p>

<p><strong>Simple Sparklines</strong><br />
<a href="http://www.tricedesigns.com/portfolio/degrafasparkline/DegrafaSparkline.html" target="_blank">http://www.tricedesigns.com/portfolio/degrafasparkline/DegrafaSparkline.html</a><br />
<strong>Datagrid Sparklines</strong><br />
<a href="http://www.tricedesigns.com/portfolio/degrafasparkline/DegrafaSparklineDatagrid.html" target="_blank">http://www.tricedesigns.com/portfolio/degrafasparkline/DegrafaSparklineDatagrid.html</a></p>

<p>You can view the source code at:<br />
<a href="http://www.tricedesigns.com/portfolio/degrafasparkline/srcview/index.html" target="_blank">http://www.tricedesigns.com/portfolio/degrafasparkline/srcview/index.html</a></p>

<p>You can download the source code at:<br />
<a href="http://www.tricedesigns.com/portfolio/degrafasparkline/srcview/Degrafa Sparkline.zip" target="_blank">http://www.tricedesigns.com/portfolio/degrafasparkline/srcview/Degrafa Sparkline.zip</a></p>

<p>___________________________________<br />
<strong>Andrew Trice</strong><br />
Principal Architect<br />
<a href="http://www.cynergysystems.com" target="_blank">Cynergy Systems<br />
http://www.cynergysystems.com</a><br />
</p>]]>
      
    </content>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2008://34.23309-comment:2017981</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2008://34.23309" type="text/html" href="http://www.insideria.com/2008/04/degrafa-data-part-2-the-sparkl.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2008/04/degrafa-data-part-2-the-sparkl.html#comment-2017981" />
    <title>Comment from brook56 on 2008-06-18</title>
    <author>
        <name>brook56</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>hey Andrew, That looks really great but you can make your Sparkline Chart's even better than this thinking where to do it ? Here let me help you try this out <a href="http//visifire.com">visifire</a> an amazing charting component offered under open source just for free</p>]]>
    </content>
    <published>2008-06-18T09:47:31Z</published>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2008://34.23309-comment:2020873</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2008://34.23309" type="text/html" href="http://www.insideria.com/2008/04/degrafa-data-part-2-the-sparkl.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2008/04/degrafa-data-part-2-the-sparkl.html#comment-2020873" />
    <title>Comment from Alessandro on 2008-08-20</title>
    <author>
        <name>Alessandro</name>
        <uri>http://insidertrades.blogspot.com</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://insidertrades.blogspot.com">
        <![CDATA[<p>Wow, fantastic article.</p>

<p>Suppose that in some casesdata.used=0, though; the bar gets displayed anyway. how would you hide it? I tried setting the this.visible=false; but it didnt work properly..</p>]]>
    </content>
    <published>2008-08-20T15:25:41Z</published>
  </entry>

</feed
