Graphing

Im a newbie wrt OpenGL. I want to develop an app with graphing/charting capability. Does anyone have some sample code; or ideas on how to proceed?