-1

enter image description here

plt.figure(figsize=(50, 30)) 
Comparison.plot(x='Country', kind='bar', stacked=True,title='Stacked Bar Graph by dataframe')
Henry Ecker
  • 34,399
  • 18
  • 41
  • 57

1 Answers1

0

Without knowing the original dataset, I suggest manually ordering the Comparison dataframe, e.g.:

Comparison.sort_index(ascending=True, ignore_index=True, inplace=True)
Comparison.plot(x='Country', kind='bar', stacked=True, title='Stacked Bar Graph by dataframe')

For other approaches see this post.

czeni
  • 427
  • 2
  • 11