Google Chart Helper 0.1
Jobba the Site is coming along great and is getting closer and closer to being done.
As I am sure you know, Google recently released a chart api, but it is a bit of a pain to generate all of the numbers and put them in the image uri so that Google can generate the charts for you. That is why I created the google_chart_helper for Code Igniter. So far it is pretty beta, and only does one chart type, the pie chart, but I figured I would put it up here to see if anyone has a better way of doing it (or some cool tips that I don’t know about).
Here is how it works:
$chart = new google_chart(); $chart_data = array(2,3,4); $chart_labels = array(two, three, four); $width = 500; $threedee = false; $colourful = true; $chart->pie_chart($chart_data, $chart_labels, $width, $threedee, $colourful);
and the result will be something like:
This was generated a while ago, and I saved it, but generally, Google will create a new chart for you every time you ask for one.
Here is the php file:
my_google_chart_helper
Have fun!
Edit
Here is the file as a txt so you can look at it (or what ever)

April 19th, 2008 at 6:59 pm
sweet! i’m going to check that out for my store software.
p.s. you need to update your rss feed for our site, we’re no longer in /wordpress
April 24th, 2008 at 2:34 pm
ok i want it, but the link links to a PHP file, so i can’t see the code. maybe you should link to a .php.txt?
April 24th, 2008 at 8:56 pm
I was assuming that people would just right-click and save-as… but ok… since you don’t have a right mouse button…
April 24th, 2008 at 11:30 pm
no, it doesn’t work. it’s a php file. you can’t just save php files lol, it would be a huge security problem