Revenue Source

Welcome to the Revenue Source affiliate marketing forums.

You are viewing our internet marketing and SEO forums as a guest which gives you limited access to most of our discussions.  By joining our free community, you will have access to post affiliate marketing topics, communicate privately with other members (PM), exchange SEO strategies, and access many other special features.  Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems, please don't hesitate to contact us.

Go Back   Revenue Source > Affiliate Marketing Hangout > Internet Marketing Articles > SEO / SEM
Reload this Page Google Hacks: Pacman graph with Google Charts
Tags: , , , ,

Reply
 
LinkBack Thread Tools Search this Thread
Old
  (#1 (permalink))
SEO Blogs is Offline
Revenue Source Veteran
SEO Blogs is worth a listen.SEO Blogs is worth a listen.SEO Blogs is worth a listen.
 
SEO Blogs's Avatar
 
Join Date: Jul 2005
Posts: 817
   
Google Hacks: Pacman graph with Google Charts - 04-25-2008

This link was cool, but it generates a graph like this:
http://chart.apis.google.com/chart?c...mble%20Pac-man
With a little modification, I made this graph:
http://chart.apis.google.com/chart?c...bles%20Pac-man
I like my picture a little better. It was quite simple to make this diagram, and Google provides a free graph-drawing tool that you can use on your own site with a single url — no account or login is needed! Let’s break down how I made this image:
http://chart.apis.google.com/chart? Loads an image from Google Chart
cht=p Chart type is a pie chart
&chtt=Percentage%20of%20Google%20Chart%20Which%20R esembles%20Pac-man Chart title
&chs=550×250 Chart size
&chd=t:10,80,10 Chart data. This is the only tricky bit. The pie chart starts from the “x-axis” of the pie. The “t:” means that the data is in text format with numbers between 0.0 and 100.0. Going clockwise, the pie chart is 10 units of non-Pacman, then 80 units of Pacman, then another 10 units of non-Pacman. The Google Graph API guide adds “Note: For text encoding, scale your data by converting it into percentages of the largest value in your data set.”
You don’t have to scale your max value to 100, but let’s do it for fun. My maximum value is 80, so to scale 80 to 100 I’d multiply my numbers by 1.25. I tried a value of “12.5,100,12.5″ and it generated an identical Pacman graph. You can even make a funky graph using 12.5 for gray, then use eight yellow slices of 12.5 units each (which add up to 100), and then finish off with a final 12.5 of gray:
http://chart.apis.google.com/chart?c...bles%20Pac-man
I like using the values 10,80,10 more. If your numbers add up to 100 then the data points are just the percentage of the pie chart: 10%, then 80%, then 10%. So 20% of the graph is gray and 80% is yellow. That’s easier for me to remember. Okay, I geeked out a bit there, sorry. Back to the graph.
&chco=FAFAFA,FFFF00,FAFAFA Chart colors. The non-Pacman bits are the color #FAFAFA, while the Pacman color is #FFFF00.
&chl=Does%20not%20resemble%20Pac-man|Resembles%20Pac-man Chart labels
I really like this graph-drawing service because anyone on the web can use it for free without even registering. For example, I used a Google-o-meter graph in a recent post:
http://chart.apis.google.com/chart?c...38;chl=A%20lot
I almost wanted to call this post “Stupid Google Tricks.” What fun diagrams can you imagine making with the Google Chart service?


Google Hacks: Pacman graph with Google Charts - Read More...
  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads for: Google Hacks: Pacman graph with Google Charts
Thread Thread Starter Forum Replies Last Post
Google Launches Social Graph API Affiliate Marketing News Internet Marketing Articles 0 02-02-2008 06:07 AM
Making a PHP Graph Affiliate Blogs Programming Help 0 01-14-2008 01:52 PM
Yahoo Hacks New Shopping, Travel Products Affiliate Marketing News Internet Marketing Articles 0 09-13-2007 03:04 PM
Walmart Hacks Affiliate Commission By 83% - 1% Payouts Anyone? Affiliate Blogs Affiliate Marketing 0 06-20-2007 06:52 PM
CodeSnipers.com: Book Review: PHP Hacks Affiliate Blogs Programming Help 0 12-01-2006 04:42 PM



© 2004-6 RevenueSource.com.  All rights reserved.  Do not duplicate or redistribute in any form.
This website and its logos/design are property of RevenueSource.com.  All rights reserved. vBSEO 3.2.0 RC7


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34