Continue to explore angularjs and flot. Tested plotting custom function