Login   Register  
PHP Classes
elePHPant
Icontem

File: piechart2.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Rahman Haghparast  >  Pie Chart Class  >  piechart2.php  >  Download  
File: piechart2.php
Role: Example script
Content type: text/plain
Description: sample for added features
Class: Pie Chart Class
An easy to use class for drawing pie charts
Author: By
Last change:
Date: 9 years ago
Size: 549 bytes
 

Contents

Class file image Download
<?php
include "piechart.class.php";
$radius 150;
$elementnames = array('Physics','Math','Chemistry');
$elements = array(80,65,73);
$colors = array('indigo','forestgreen','cadetblue');
$chart=new piechart(
                                        
$radius,
                                        
$elementnames,
                                        
$elements,
                                        
$colors
                                        
);
$chart->links = array('1.html','2.html','3.html');
$chart->GenerateHtmlCode(1);
?>