Login   Register  
PHP Classes
elePHPant
Icontem

File: sample.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Jonathan Discipulo  >  Google Chart for PHP 5  >  sample.php  >  Download  
File: sample.php
Role: Example script
Content type: text/plain
Description: Sample PHP using Google Chart Class
Class: Google Chart for PHP 5
Generate chart images using Google chart service
Author: By
Last change:
Date: 5 years ago
Size: 389 bytes
 

Contents

Class file image Download
<?php

include "class.google.chart.php";

$pie = new GoogleChart();
$pie->setType("p3");
$pie->setSize("500""200");
$pie->setTitle("Search Engines");
$pie->setTCS("000000""20");
$pie->setData("53,23,13,5,6");
$pie->setLabel("Google|Yahoo!|Bing|AskJeeves|Others");
$pie->setLegend("Google|Yahoo!|Bing|AskJeeves|Others");
$pie->setColor("FF0000");
$pie->showChart();

?>