TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 12-07-2007, 03:17 PM   #1 (permalink)
bdm
The Acquainted
Good Samaritan 
 
Join Date: Nov 2007
Posts: 127
Thanks: 14
bdm is on a distinguished road
Default Google's Chart API

Haven't played around with it yet, but it seems fairly flexible. I've seen a few threads about generating charts. So maybe it will become useful to some people. And since you can execute 50,000 queries to their servers daily, there's no telling what kind of cool stuff people could come up with.

http://code.google.com/apis/chart/

Enjoy
bdm is offline  
Reply With Quote
Old 12-07-2007, 03:32 PM   #2 (permalink)
The Contributor
 
aristoworks's Avatar
 
Join Date: Nov 2007
Location: Nashville
Posts: 44
Thanks: 7
aristoworks is on a distinguished road
Default

1 step closer to taking over the world.
Send a message via AIM to aristoworks
aristoworks is offline  
Reply With Quote
Old 12-07-2007, 04:48 PM   #3 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

Quote:
Originally Posted by aristoworks View Post
1 step closer to taking over the world.
Lol. Have I started something? Nice graphs, although I would honestly still use my own server's resources and generate them using GD myself.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
Old 12-07-2007, 05:50 PM   #4 (permalink)
The Acquainted
 
sjaq's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 113
Thanks: 11
sjaq is on a distinguished road
Default

I wonder if they are saving this data, if so this is kinda scary.

Maybe someone can come up with some kind of class wrapper for this so you don't have to use those crazy urls.
sjaq is offline  
Reply With Quote
Old 12-07-2007, 08:54 PM   #5 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

Quote:
Originally Posted by sjaq View Post
I wonder if they are saving this data, if so this is kinda scary.

Maybe someone can come up with some kind of class wrapper for this so you don't have to use those crazy urls.
It all depends on what information you're giving Google. If you're simply giving them random digits and some equivocal text, then Google can't do a whole lot with that, it's when Google start linking that with the actual purpose of the diagram - by possibly supplying a title to Google such as: "Fiscal diagram for MySite.com from the 14th of Oct to the 14th of Nov".

I could make a nice wrapper class for this, but I'd much prefer to keep all the image processing locally.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
The Following User Says Thank You to Wildhoney For This Useful Post:
aadhunik (12-08-2007)
Old 12-07-2007, 08:24 PM   #6 (permalink)
The Wanderer
 
aadhunik's Avatar
 
Join Date: Sep 2007
Posts: 10
Thanks: 4
aadhunik is on a distinguished road
Default

I love php Open Flash Chart.
__________________
Aadhunik Web Services India.
aadhunik is offline  
Reply With Quote
Old 12-08-2007, 03:22 PM   #7 (permalink)
The Acquainted
Upcoming Programmer 
 
CMellor's Avatar
 
Join Date: Sep 2007
Location: Leeds, UK
Posts: 141
Thanks: 6
CMellor is on a distinguished road
Default

This looks pretty cool, thanks for bringing it to my attention.
__________________
Not quite a n00b...
CMellor is offline  
Reply With Quote
Old 12-08-2007, 05:08 PM   #8 (permalink)
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

I got bored last night and wrote a quick wrapper for this API. It means I could write something like the following and get the image back.

php Code:
$aData = array(33, 30, 37, 37, 40, 23, 15, 18, 17, 4);

$pChart = new GoogleChart_Line(200, 100);
$pChart->data($aData);
$pChart->title("My Chart", '333333', '20'); // optional
$pChart->fill_background('ECF0F3'); // optional
$pChart->render();

Which results in:
It's very crude at the moment, so no code releases! Maybe you can have a stab at writing a similar class too.

Last edited by Salathe : 12-08-2007 at 05:42 PM.
Salathe is offline  
Reply With Quote
Old 12-10-2007, 07:11 PM   #9 (permalink)
The Acquainted
 
Join Date: Oct 2007
Posts: 170
Thanks: 18
maZtah is an unknown quantity at this point
Default

I've also written a basic tutorial for this API here.
maZtah is offline  
Reply With Quote
Old 12-10-2007, 07:19 PM   #10 (permalink)
bdm
The Acquainted
Good Samaritan 
 
Join Date: Nov 2007
Posts: 127
Thanks: 14
bdm is on a distinguished road
Default

Quote:
Originally Posted by maZtah View Post
I've also written a basic tutorial for this API here.
++ for you.
bdm is offline  
Reply With Quote
Old 12-11-2007, 03:38 AM   #11 (permalink)
The Frequenter
Prolific Welcomer Upcoming Programmer 
 
Join Date: Sep 2007
Posts: 360
Thanks: 24
Haris is on a distinguished road
Default

Although, some people might be happy with those 50,000 queries per 24 hour limit but I am never happy with those "Not expandable" limits.

I would love to pay to increase the limits, either to Google or my developer. (I am my own developer )
__________________
Necessity is the mother of invention.

My blog
Haris is offline  
Reply With Quote
Old 12-11-2007, 01:57 PM   #12 (permalink)
bdm
The Acquainted
Good Samaritan 
 
Join Date: Nov 2007
Posts: 127
Thanks: 14
bdm is on a distinguished road
Default

Quote:
Originally Posted by Haris View Post
Although, some people might be happy with those 50,000 queries per 24 hour limit but I am never happy with those "Not expandable" limits.

I would love to pay to increase the limits, either to Google or my developer. (I am my own developer )
Since this is simply an initial release, I'm sure they will increase the limit.
bdm is offline  
Reply With Quote
Old 12-21-2007, 01:29 PM   #13 (permalink)
The Wanderer
 
Join Date: Dec 2007
Posts: 7
Thanks: 3
reborn is on a distinguished road
Default

Quote:
Originally Posted by Haris View Post
I would love to pay to increase the limits, either to Google or my developer.
Why would you need over 50 000 queries? I would cache the result to save on googles machines.
reborn is offline  
Reply With Quote
Old 12-21-2007, 02:15 PM   #14 (permalink)
The Addict
Upcoming Programmer Top Contributor 
 
Rendair's Avatar
 
Join Date: Nov 2007
Location: UK
Posts: 319
Thanks: 18
Rendair is on a distinguished road
Default

I still prefer PHP GD to make my graphs, but i must say this does make things easier.
__________________
www.jooney.co.uk - the online portfolio
Send a message via MSN to Rendair
Rendair is offline  
Reply With Quote
Old 06-01-2011, 05:25 AM   #15 (permalink)
The Wanderer
 
jacket250's Avatar
 
Join Date: Jun 2011
Posts: 7
Thanks: 0
jacket250 is on a distinguished road
Default

yeal thank you for share.....













Diablo 3 Items

Last edited by jacket250 : 11-01-2011 at 02:18 AM.
jacket250 is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 04:09 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design