xuanloc implemented draw graph function of UIGraphView