Code refactoring
Changing bar chart direction.