chart = data[data['Year'] == 1980]['Sport'].value_counts().plot(kind='bar') chart.set_xticklabels(chart.get_xticklabels(), rotation=45, horizontalalignment='right')