PHP Growth Charts for MacOSX
Brought to you by:
jabbett
Hi Jonathan,
I recently managed a successful install of PHP growth Charts on Mac OSX (Leopard + MAMP 1.7.1 running php5):
First, I tossed out the jpgraph 2.1.1 and placed jpgraph 2.3.3
I changed jpgraph.php on line 60 to:
} else {
DEFINE('TTF_DIR','/Library/Fonts/');
}
Then, in Library/Fonts I duplicated the Trebuchet font and changed the name of it to trebuc.ttf to conform with the script requirements.
Then, I duplicated the Courier Bold font and changed the name of it to courbd.ttf
and the growth chart displayed as expected.
Perhaps you can add this code and tips to PHP Growth Charts as an aid for the Mac Community?
All the very best,
Daniel Hinostroza
Logged In: YES
user_id=706180
Originator: YES
When using jpgraph-2.3.3, change lines 3 to 5 on the GrowthChart.class.php to:
include ("jpgraph-2.3.3/src/jpgraph.php");
include ("jpgraph-2.3.3/src/jpgraph_line.php");
include ("jpgraph-2.3.3/src/jpgraph_regstat.php");