PHP Classes

File: piechart.php

Recommend this page to a friend!
  Classes of Rahman Haghparast   Pie Chart Class   piechart.php   Download  
File: piechart.php
Role: Example script
Content type: text/plain
Description: a sample for creating a pie chart
Class: Pie Chart Class
An easy to use class for drawing pie charts
Author: By
Last change:
Date: 21 years ago
Size: 311 bytes
 

Contents

Class file image Download
<?php
include "piechart.class.php";
$chart1=new piechart(
                   
180,
                    array(
'January','February','March','April','May'),
                    array(
20,30,60,80,100),
                    array(
'yellow','wheat','blue','yellowgreen','fuchsia')
                    );
$chart1->draw();
$chart1->out('test1.jpg',0);
$chart1->out('test2.jpg',100);
?>