Dear Sir, thanks a lot for sharing this codes, I am studying how to draw bar graph and your codes…