Added the final code for the WebGL Bar Chart function