i want create graph using php. have tested jpgraph example. display error like
> image “http://localhost/test/jpgraphtest.php” cannot displayed > because contains errors. <?php include('phpgraphlib.php'); $graph = new phpgraphlib(500,350); $data = array(12124, 5535, 43373, 22223, 90432, 23332, 15544, 24523, 32778, 38878, 28787, 33243, 34832, 32302); $graph->adddata($data); $graph->settitle('widgets produced'); $graph->setgradient('red', 'maroon'); $graph->creategraph(); ?>
check link think perfect.
http://pchart.sourceforge.net/
(also should configure php enable image creating).
in windows, you'll include gd2 dll php_gd2.dll extension in php.ini. gd1 dll php_gd.dll removed in php 4.3.2. note preferred truecolor image functions, such imagecreatetruecolor(), require gd2.
check these links. http://www.php.net/manual/en/image.requirements.php
http://www.php.net/manual/en/image.installation.php
http://www.php.net/manual/en/image.configuration.php examples:
Comments
Post a Comment