Technical Difficulties from on Top of the Mountain
2005-11-30
  Technical Difficulties of knowing too much
So one of the tasks for the project I'm on is to update a report with some additional data. It's a report showing a list of people and what they did when they heard a certain song (let it play vs skip it). The task was to add another detail report that would pop up when you clicked on one line and show the trend of listening vs skipping the song (and how long the song played before you took action). The example was something like this:

bad graph

Besides being confused by this graph initially, and thinking the thing is pretty darn ugly; I know better than to do this (and its all Don Park's fault).

Besides pointing me at tiny databases, new languages, and a whole assortment of other DHTML goodies; he discovered an article by Edward Tufte on a new concept for graphs that are so tiny, they can be placed within the text itself, allowing small bits of data to accompany the text without breaking the flow of reading. He called these things sparklines.

They're a neat idea, and they've gotten fair interest in the free software community. There's various libraries for generating all kinds of line and bar graphs. I like this one that shows the federal deficit (those black bars are when there was a democrat in office :-). But for what I was doing, trying to jam in a big client side library of javascript or trying to get all the customer servers to add more server side libraries seemed to be overkill.

I thought there ought to be some way of doing it with DIVs, but browsing around just a bit I ran into a bunch of examples that just used tables. With a little bit of experimentation I managed to come up with this:
which is just the following:

<TABLE bgcolor=white  cellSpacing=1 cellPadding=0>
<TR valign=bottom>
  <TD height=20> <TABLE border=0 cellSpacing=0 cellPadding=0 width=2><TR><TD height=13 bgcolor=blue></TD></TR></TABLE> </TD>
  <TD> <TABLE border=0 cellSpacing=0 cellPadding=0 width=2><TR><TD height=14 bgcolor=blue></TD></TR></TABLE> </TD>
  <TD> <TABLE border=0 cellSpacing=0 cellPadding=0 width=2><TR><TD height=13 bgcolor=blue></TD></TR></TABLE> </TD>
  <TD> <TABLE border=0 cellSpacing=0 cellPadding=0 width=2><TR><TD height=6 bgcolor=red></TD></TR></TABLE> </TD>
  <TD> <TABLE border=0 cellSpacing=0 cellPadding=0 width=2><TR><TD height=10 bgcolor=blue></TD></TR></TABLE> </TD>
  <TD> <TABLE border=0 cellSpacing=0 cellPadding=0 width=2><TR><TD height=6 bgcolor=red></TD></TR></TABLE> </TD>
  <TD> <TABLE border=0 cellSpacing=0 cellPadding=0 width=2><TR><TD height=2 bgcolor=red></TD></TR></TABLE> </TD>
  <TD> <TABLE border=0 cellSpacing=0 cellPadding=0 width=2><TR><TD height=3 bgcolor=red></TD></TR></TABLE> </TD>
  <TD> <TABLE border=0 cellSpacing=0 cellPadding=0 width=2><TR><TD height=1 bgcolor=red></TD></TR></TABLE> </TD>
  <TD> <TABLE border=0 cellSpacing=0 cellPadding=0 width=2><TR><TD height=1 bgcolor=red></TD></TR></TABLE> </TD>
</TR>
</TABLE>
Conveys just about as much data (the actual number of seconds is not really important--this is about trends), and its small enough to fit right in the original table instead of needing a separate window. I think I'll just tell the client it was my idea ...
 
Comments: Post a Comment

<< Home
Life in the middle of nowhere, remote programming to try and support it, startups, children, and some tinkering when I get a chance.

ARCHIVES
January 2004 / February 2004 / March 2004 / April 2004 / May 2004 / June 2004 / July 2004 / August 2004 / September 2004 / October 2004 / November 2004 / December 2004 / January 2005 / February 2005 / March 2005 / April 2005 / May 2005 / June 2005 / July 2005 / August 2005 / September 2005 / October 2005 / November 2005 / December 2005 / January 2006 / February 2006 / March 2006 / April 2006 / May 2006 / June 2006 / July 2006 / August 2006 / September 2006 / October 2006 / November 2006 / December 2006 / January 2007 / February 2007 / March 2007 / April 2007 / June 2007 / July 2007 / August 2007 / September 2007 / October 2007 / November 2007 / December 2007 / January 2008 / May 2008 / June 2008 / August 2008 / February 2009 / August 2009 / February 2010 / February 2011 / March 2011 / October 2011 / March 2012 / July 2013 / August 2013 / September 2013 / October 2013 / November 2013 / December 2013 / December 2014 / February 2015 / March 2015 / July 2016 / September 2016 / December 2016 / April 2017 / June 2017 / July 2018 / November 2018 / January 2019 / February 2019 / April 2019 / December 2019 / March 2020 / April 2020 / May 2020 / September 2020 / November 2020 / March 2021 / May 2023 /


Blogroll
Paul Graham's Essays
You may not want to write in Lisp, but his advise on software, life and business is always worth listening to.
How to save the world
Dave Pollard working on changing the world .. one partially baked idea at a time.
SnowDeal
Eric Snowdeal IV - born 15 weeks too soon, now living a normal baby life.
Land and Hold Short
The life of a pilot.

The best of?
Jan '04
The second best villain of all times.

Feb '04
Oops I dropped by satellite.
New Jets create excitement in the air.
The audience is not listening.

Mar '04
Neat chemicals you don't want to mess with.
The Lack of Practise Effect

Apr '04
Scramjets take to the air
Doing dangerous things in the fire.
The Real Way to get a job

May '04
Checking out cool tools (with the kids)
A master geek (Ink Tank flashback)
How to play with your kids

Powered by Blogger