It depends on what sort of graphs you need to produce. For ones with very small data sets, Google has a graph API that is very easy to use with little to no server-side code needed.
For things that are a bit more complex and where you need some more control, then look at Pear Graph, which is a very powerful PHP graph class.