Senin, 04 Januari 2010

PHP : BAR EXMP 2



/*

The Bar chart generator by Ashish Kasturia (http://www.123ashish.com)
Copyright (C) 2003 Ashish Kasturia (ashish at 123ashish.com)


The Bar chart generator is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA.

*/




include("barmaker.php");

$b = new Bar();

$b->SetBGJPEGImage("../model.jpg");
$b->SetTitleColor(245, 245, 255);
$b->SetTitle("Catherine's shopping list!");
$b->AddValue("Day 1", array(2, 4, 2));
$b->AddValue("Day 2", array(3, 10, 3));
$b->AddValue("Day 3", array(1, 7, 4));
$b->SetSeriesLabels(Array("Cakes", "Candies", "Ice creams"));

$b->spit("jpg");


?>

Tidak ada komentar: