addedg.bar.js for implementing bar graphs[master]