please reference to :
http://qwt.sourceforge.net/

Hope you could find what you want