2
0
forked from Wavyzz/dolibarr
Files
dolibarr-fork/htdocs/includes/phplot
Rodolphe Quiedeville 84b2b0b732 Retour au code d'origine
2003-11-07 13:29:04 +00:00
..
2003-06-29 22:34:44 +00:00
2003-11-07 13:29:04 +00:00
2003-06-29 22:34:44 +00:00
2003-06-29 22:34:44 +00:00

This routine is a class for creating scientific and business
charts. To run the test data extract the files with
	tar -zxvf phplot-4.0.2.tar.gz 
and then point your browser to 
	examples/format-chart.php.

There are some configuration settings that you will need
to make based on your setup. 

1. File Type: Depending on the version of GD you are using, 
you may or may not have GIF or PNG file ability. That is 
set with the function. 
	SetFileFormat("<filetype>") where <filetype> is png, gif, jpeg, ...
or edit the file phplot.php and make the line
	var $file_format = "<filetype>";

2. TTF: If you have TTF installed then use 
	SetUseTTF("1");
otherwise use
	SetUseTTF("0");

Everything else should be independent of what version you are using.
This has been tested with PHP3, PHP4, GD1.2 and GD 3.8. 

To start with a test, see format_chart.php

--------------------------
Compatibility Note: If you are using PHP3 earlier than version 3.0.2 then 
you need to change one line in phplot.php. Change 
	ImageColorResolve 
to 
	ImageColorAllocate


Copyright (C) 1998,1999,2000,2001 Afan Ottenheimer, afan@jeo.net
This is distributed with NO WARRANTY and under the terms of the GNU GPL
and PHP licenses.
If you use it - a cookie or some credit would be nice.
You can get a copy of the GNU GPL at http://www.gnu.org/copyleft/gpl.html
You can get a copy of the PHP License at http://www.php.net/license.html

See http://www.sourceforge.net/projects/phplot/ for later changelogs.
Aug 15, 2000: Version 3: added dots, lines, area, and pie charts
Aug 12, 1999: version 2: added bars that can be < 0