Looks good to me. The error you're getting is ONLY displayed when CACHE_DIR is not defined, you're on windows, and $_ENV['temp'] doesn't exist. Double check that your cache dir is valid and you don't have any typos in that line. For example, "Document and Settings" should really be "Documents and Settings" (notice Documents is plural). Still, the error you get is because the path isn't defined, not because the directory is invalid.
If you're still having trouble, feel free to paste the relevant lines from your jpgraph.php here and we'll hunt for problems and typos.
I just unzipped jpgraph, added the jpgraph\src dir to my PHP include_path, defined CACHE_DIR in jpgraph.php, and created this simple test script:
<?php
require_once('jpgraph.php');
$graph = new Graph(300, 200,"auto");
?>
I didn't actually generate a graph, but since the script didn't die with any errors, I assume that everything is working fine to begin with.
Take care,
Nik
http://www.bigaction.org/