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/
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Discussion • Score: 20 • Views: 6,609 • Replies: 15
No top replies

 
JPB
 
  1  
Reply Wed 10 Sep, 2008 01:21 pm
@Robert Gentel,
very cool!
0 Replies
 
sozobe
 
  2  
Reply Wed 10 Sep, 2008 01:38 pm
@Robert Gentel,
oooh!

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

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



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

Must be "political" cheese.

Wink
0 Replies
 
farmerman
 
  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
 
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
 
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
 
OCCOM BILL
 
  2  
Reply Sat 20 Sep, 2008 02:01 am
@Robert Gentel,
Did I read somewhere that tagging was sufficient, and I don't really need this bookmark?
TTH
 
  1  
Reply Sat 20 Sep, 2008 10:10 am
http://tinyurl.com/3mq6pv
0 Replies
 
jespah
 
  1  
Reply Sat 20 Sep, 2008 10:41 am
@OCCOM BILL,
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
Sites with charts and graphs - Question by ModernVisage
histogram - Discussion by israr55
How privileged are you? - Discussion by tsarstepan
How to choose what kind of chart to use - Discussion by Robert Gentel
 
  1. Forums
  2. » How to easily build charts and graphs for the web
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 04/18/2024 at 01:43:21