PHP Classes

File: example

Recommend this page to a friend!
  Classes of carlos   Stacked Bar Chart Class   example   Download  
File: example
Role: Example script
Content type: text/plain
Description: example
Class: Stacked Bar Chart Class
Generate stacked bar chart images from data
Author: By
Last change:
Date: 20 years ago
Size: 509 bytes
 

Contents

Class file image Download
<?php
include 'stacked_bar_classes.php';
$chart = array ( array ("", "2001", "2002", "2003" ), array ( "Serie 1", 100, 45, 25),
                        array (
"Serie 2", 80, 65, 35 ), array ( "Serie C", 55, 30, 80 ), array ( "Serie D", 55, 30, 80 ) );

   
$tittle = "CHART TITTLE";
   
$serie = array ( "0","FFFF00", "FF0000", "2F97FF", "564546", "784e3a", "677b75" );
   
$width = 700;
   
$height = 400;
   
$hex_color = 'ffffff';
   
$bg = new grafico($tittle,$width,$height,$hex_color,$chart,$serie);
   
$bg->draw_graph();

?>