fix x axis and legend
final barchart; merge with master branch