Dec 4, 2003 #1 likelylad IS-IT--Management Joined Jul 4, 2002 Messages 388 Location GB I am using GD library to produce a graph. How can I put labels on the x and y axis. i.e. X-axis will be week numbers Y-axis will be revenue Thanking in advance for any help received
I am using GD library to produce a graph. How can I put labels on the x and y axis. i.e. X-axis will be week numbers Y-axis will be revenue Thanking in advance for any help received
Dec 4, 2003 1 #2 sleipnir214 Programmer Joined May 6, 2002 Messages 15,350 Location US Example code on placing text on an image using TrueType fonts is available in the PHP online manual under imagettftest(): http://www.php.net/manual/en/function.imagettftext.php You might also want to take a look at the JPGraph class library, which is very useful for producing graphs: http://www.aditus.nu/jpgraph/index.php Want the best answers? Ask the best questions: http://www.catb.org/~esr/faqs/smart-questions.htmlTANSTAAFL!! Upvote 0 Downvote
Example code on placing text on an image using TrueType fonts is available in the PHP online manual under imagettftest(): http://www.php.net/manual/en/function.imagettftext.php You might also want to take a look at the JPGraph class library, which is very useful for producing graphs: http://www.aditus.nu/jpgraph/index.php Want the best answers? Ask the best questions: http://www.catb.org/~esr/faqs/smart-questions.htmlTANSTAAFL!!