Completed draw graph using flotr2.js and also flot