20
   

How to easily build charts and graphs for the web

 
 
Reply Wed 10 Sep, 2008 01:15 pm
Since there are a few chart geeks (ok, so there's nimh) here who put a lot of work into charts I figured I'd post a tutorial on how you can easily make beautiful image charts on the fly.

In web development, I subscribe to the strategy of "Abstracting through a standard protocol". A good example is in Google's charts api. They let you use the standard URI protocol to generate beautiful chart and graph images that are made as soon as they are viewed.

So instead of using complex tools just to get a chart going, or using text tables it's as easy to make beautiful graph images using a simple url to Google's charts. If you are a programmer your application can be made to generate them automatically (the intended use for the api) or you can make them manually and display them almost anywhere on the web using image tags.

Here's an example.



Makes this image:

http://chart.apis.google.com/chart?cht=p3&chd=t:60,40&chs=250x100&chl=Hello|World

There are many different kinds of charts. You can even do maps like this:

http://chart.apis.google.com/chart?chco=f5f5f5,edf0d4,6c9642,365e24,13390a&chd=s:fSGBDQBQBBAGABCBDAKLCDGFCLBBEBBEPASDKJBDD9BHHEAACAC&chf=bg,s,eaf7fe&chtm=usa&chld=NYPATNWVNVNJNHVAHIVTNMNCNDNELASDDCDEFLWAKSWIORKYMEOHIAIDCTWYUTINILAKTXCOMDMAALMOMNCAOKMIGAAZMTMSSCRIAR&chs=440x220&cht=t


You can read more about the url format here and make any chart you want mannualy or you can use these tools to generate the urls needed for your graph:

http://charts.hohli.com/
http://tkhere.googlepages.com/tkgooglecharter.html
http://www.tagarga.com/files/gcui/
http://chartpart.com/
http://jonwinstanley.com/charts/
http://www.acme.com/chartmaker/
 
View Profile JPB
 
  1  
Reply Wed 10 Sep, 2008 01:21 pm
very cool!
0 Replies
 
View Profile sozobe
 
  2  
Reply Wed 10 Sep, 2008 01:38 pm
oooh!

aah!
  2  
Reply Wed 10 Sep, 2008 01:41 pm
You guys need to be more specific.

http://chart.apis.google.com/chart?cht=p3&chd=t:70,30&chs=250x100&chl=Oooh!|aah!
View Profile fbaezer
 
  1  
Reply Wed 10 Sep, 2008 02:04 pm
specific bookmark.
  0  
Reply Wed 10 Sep, 2008 06:05 pm
Ditto
0 Replies
 
View Profile littlek
 
  1  
Reply Wed 10 Sep, 2008 06:11 pm
This could come in handy some day...... May take a little study-time to figure out the coding, though.
0 Replies
 
View Profile sozobe
 
  1  
Reply Wed 10 Sep, 2008 07:11 pm
http://chart.apis.google.com/chart?cht=p3&chd=t:60,40&chs=250x100&chl=fun|timesink
0 Replies
 
View Profile ehBeth
 
  1  
Reply Wed 10 Sep, 2008 09:28 pm
mmmm that cheddar looks good



(off to tag appropriately)
  1  
Reply Wed 10 Sep, 2008 09:31 pm
I was recently taught that "real" cheddar is white...

Must be "political" cheese.

Wink
0 Replies
 
  1  
Reply Thu 11 Sep, 2008 06:00 am
This is what IT staffers are for. Im lazy, I know what graphs I need and what data I want to show. I then give it to Kathy, shes great at all this and layers too. I am totally and symmetrically ignorant of all this but Im easily impressed by well done graphs (I like to make sure they are accurate though)
0 Replies
 
View Profile DrewDad
 
  1  
Reply Thu 11 Sep, 2008 07:44 am
http://chart.apis.google.com/chart?cht=p3&chd=t:59,40,1&chs=250x100&chl=Cool|Geeky|Useful
0 Replies
 
View Profile jespah
 
  1  
Reply Thu 11 Sep, 2008 03:37 pm
http://chart.apis.google.com/chart?cht=p3&chd=t:60,30,10&chs=250x100&chl=Good|Bad|Ugly
0 Replies
 
  2  
Reply Sat 20 Sep, 2008 02:01 am
Did I read somewhere that tagging was sufficient, and I don't really need this bookmark?
View Profile TTH
 
  1  
Reply Sat 20 Sep, 2008 10:10 am
http://tinyurl.com/3mq6pv
0 Replies
 
View Profile jespah
 
  1  
Reply Sat 20 Sep, 2008 10:41 am
That's correct. Tag it with something meaningful and that will show up in your "My Tags" page.
0 Replies
 
 

Related Topics

Graph and Chart Humor (nerd alert!) - Discussion by Robert Gentel
How to choose what kind of chart to use - Discussion by Robert Gentel
 
  1. able2know
  2. » How to easily build charts and graphs for the web
Copyright © 2009 Horizontal Verticals :: Page generated in 0.36 seconds on 11/23/2009 at 11:28:32 Top End