In the past, I've used a pretty good graphing library called QWT.
http://qwt.sourceforge.net/
The only issue I had with it was that it changed the cursor when you hovered over a graph, but I found a way of killing that. If you'd like to know a bit more I can dig through my old code to find out how I did it.