Google Charts Plugin

by freekrai

Show:

ponjohsays

Cool! Bookmarked and appreciated =) Hehe I hadn’t bought anything on Envato until the PHP Scripts category came along =P

Posted 9 months ago

garibensays

Looking cool.

What data do you need to create the graphs?

just table data in cvs/txt/xls format, upload to Google, and it generates the graph? or am I getting it all wrong?

Thanks

Posted 9 months ago

freekraisays

Author

Thanks ponjoh :)

gariben, You put the data in a PHP array, and the class does the work of sending it to google, handling caching, etc.

Idea is that you just had to set up your array containing your data and the class does the rest.

It’s been working well on every project I’ve used it on, so I figured I’d let others make use of it too.

I also have a version that is purely javascript, minus the caching, just haven’t finished the documentation to upload it here yet.

Posted 9 months ago

Twadesays

Amazing work, has been planning to do this for envato but you beat me to it :P Looks really good though! Can see it being very useful on sites.

Posted 9 months ago

keithvsays

Is there a way to save the resulting graphic to your server? Or do you have to reference an image on Google’s server?

Thanks!

Posted 9 months ago

freekraisays

Author

keithv, the file that is saved by the cacher function is the png file saved to your hard drive, I have saving as a .txt file and being read out via the cache system, but you can also have it save it straight as a png file.

Posted 9 months ago

soremitesays

Purchased

Works great.

If you use godaddy hosting add php5 to the extentions and check inside the files for any php references.

Posted 9 months ago

freekraisays

Author

@soremite, what sort of godaddy hosting account do you have?

I haven’t had a server there for a while (moved them to mediatemple and slicehost), but I’ve never had to add php5 to the extension before ever, and all my files were php5.

Posted 9 months ago

Slepisays

Hello freekrai,

Is it possible to have this script converted into a CakePHP component with minimal efforts?

For example, since you implemented caching in this script, will it be difficult to customize it so that the caching system complies to the file/folder-structure conventions used by CakePHP?

Thanks.

Posted 8 months ago

freekraisays

Author

@Slepi, as it is now, can set in it’s own folder and be called by a CakePHP script, to convert it into a full CakePHP component would be a rewrite of pretty much the whole system, and then would only work for CakePHP.

In its current form, it can be used on any website that has PHP , and is not limited just to one framework, and I myself would rather leave it that way.

Posted 8 months ago

jeffeatworldsays

Purchased

Hi

Great littel php snippet here, makes it so much simpler especailly things like the dimension and choosing colours.

I have a quiestion – How do you change the encoding? I asking becuase I have values taht are often over 100 adn I think simple encoding only goes up to 100 :-(

I’ve yet to try it with database results but I’m assuming that too will work like a charm…

Posted 8 months ago
Author

freekrai freekraireplied

I’ve had some users on DBStract with pretty long values.

I’ve had it handling over 100 characters pretty easily. base64_encode’s only limitation that I’ve run into is with IE6 , where it could only handle up to 2000 characters.

You can change it to something else, but base64 definitely handles more than 100 characters.

Posted 8 months ago
Purchased

jeffeatworld jeffeatworldreplied

Cheers, taking a real basic example I literally just changed the first entry in $dataMultiple which is for Feb 2008 > IE7 from 22 to 200 to see it would scale – that’s what I’m talking about.

I read this page – http://code.google.com/apis/chart/formats.html#scaled_values

I’m wondering how to adjust the script for scaling?

Posted 8 months ago
7 More Replies
Author

freekrai freekraireplied

It’s in the update queue, should be available to you guys shortly

Posted 6 months ago

jeffeatworldsays

Purchased

Cheers – whats the update queue?

Posted 6 months ago

$7

Prepaid customers
pay just $5 - how? Prepay Your Account With our deposit system not only will purchasing be much faster, but we’ll also take $2 off the price! Click Here to Deposit Price

You must sign in or sign up to purchase this item.

12345 ( 8 ratings )

Purchase 39 purchases

freekrai

freekrai

Exclusive Author Referred at least one person Sold between 1 000 and 5 000 dollars Bought between 100 and 499 items Canada
File Types Included
PHP
Item Attributes
Created 23 June 09
PHP Version 5.x
MySQL Version N/A
Compatible Browsers FireFox 2, FireFox 3, IE6, IE7, Safari
ThemeForest Files Included N/A
PHP Files Included PHP
PHP Framework N/A
Collections that include this item