Added bar chart code for author by year