Bar chart working perfectly